Merge pull request #9713 from ellemouton/getInfoStarted

scripts: use LND status to determine when a node is ready for RPC calls
This commit is contained in:
Oliver Gugger authored and GitHub committed 2025-04-15 12:40:32 +02:00
commit 014706cc3e
1 file changed
+3 -3
+3 -3
View File
@@ -60,7 +60,7 @@ wait_for_node() {
echo -n "⌛ Waiting for $node to start (timeout: ${TIMEOUT}s)" echo -n "⌛ Waiting for $node to start (timeout: ${TIMEOUT}s)"
while ! $node getinfo 2>/dev/null | grep -q identity_pubkey; do while ! $node state 2>/dev/null | grep -q SERVER_ACTIVE; do
echo -n "." echo -n "."
sleep 0.5 sleep 0.5
@@ -96,10 +96,10 @@ do_for() {
# setup_network sets up the basic A <> B <> C <> D network. # setup_network sets up the basic A <> B <> C <> D network.
function setup_network() { function setup_network() {
wait_for_nodes alice bob charlie dave
setup_bitcoin setup_bitcoin
wait_for_nodes alice bob charlie dave
do_for fund_node alice bob charlie dave do_for fund_node alice bob charlie dave
mine 6 mine 6