mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
tools/bench-gossipd.sh: make sure we wait for gossipd to startup sync.
It can take a while if bitcoind has the regtest chain, and grossly distorts our benchmarks! Reported-by: Joe Netti <jnetti@blockstream.io> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
902bb22a92
commit
1ccfbef4e7
@ -23,6 +23,8 @@ wait_for_start()
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
# Wait for it to catch up with bitcoind.
|
||||
while [ "$($LCLI1 -H getinfo 2>/dev/null | grep '^blockheight=' | cut -d= -f2)" != "$(bitcoin-cli -regtest getblockcount)" ]; do sleep 1; done
|
||||
echo "$ID"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user