diff --git a/tools/bench-gossipd.sh b/tools/bench-gossipd.sh index c37bd2b23..cf1d3461c 100755 --- a/tools/bench-gossipd.sh +++ b/tools/bench-gossipd.sh @@ -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" }