Skip to content

Commit 014706c

Browse files
authored
Merge pull request lightningnetwork#9713 from ellemouton/getInfoStarted
scripts: use LND status to determine when a node is ready for RPC calls
2 parents 7d3b5a1 + c70e119 commit 014706c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/bw-compatibility-test/network.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ wait_for_node() {
6060

6161
echo -n "⌛ Waiting for $node to start (timeout: ${TIMEOUT}s)"
6262

63-
while ! $node getinfo 2>/dev/null | grep -q identity_pubkey; do
63+
while ! $node state 2>/dev/null | grep -q SERVER_ACTIVE; do
6464
echo -n "."
6565
sleep 0.5
6666

@@ -96,10 +96,10 @@ do_for() {
9696

9797
# setup_network sets up the basic A <> B <> C <> D network.
9898
function setup_network() {
99-
wait_for_nodes alice bob charlie dave
100-
10199
setup_bitcoin
102100

101+
wait_for_nodes alice bob charlie dave
102+
103103
do_for fund_node alice bob charlie dave
104104
mine 6
105105

0 commit comments

Comments
 (0)