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 2025-04-15 12:40:32 +02:00 committed by GitHub
commit 014706cc3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ wait_for_node() {
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 "."
sleep 0.5
@ -96,10 +96,10 @@ do_for() {
# setup_network sets up the basic A <> B <> C <> D network.
function setup_network() {
wait_for_nodes alice bob charlie dave
setup_bitcoin
wait_for_nodes alice bob charlie dave
do_for fund_node alice bob charlie dave
mine 6