Skip to content

Commit 88e6760

Browse files
committed
fix(bin): network-init.sh: improve delays and prevent early exit
1 parent 9aa7706 commit 88e6760

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/network-init.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,18 @@ while [ ! -S ${socket} ]; do sleep 1; done
4040

4141
appchain () {
4242
echo "$@" | tee >(cat >&2) | nc -U -q 0 ${socket}
43-
sleep 1s
4443
}
4544

4645
appchain admin setAdmin
4746
appchain nodes setRegistrationStake 0
4847
appchain nodes openRegistration
4948
appchain networks register ${network_id} ${network_build}
49+
sleep 2s # prev command takes longer for IPFS
5050
appchain networks setActive ${network_id}
5151

52+
# this ensures we don't kill prematurely
53+
sleep 10
54+
5255
kill ${PID}
5356

5457
rm -f ${socket}

0 commit comments

Comments
 (0)