diff --git a/berachain/scripts/init.sh b/berachain/scripts/init.sh index ca241bbf..69328a89 100644 --- a/berachain/scripts/init.sh +++ b/berachain/scripts/init.sh @@ -84,7 +84,7 @@ fi #cd "$CONFIG_DIR" -while curl -s -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' -H "Content-Type: application/json" "$L2_RPC" | grep -q '"result":true'; do +while curl -s -X POST --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":1}' -H "Content-Type: application/json" "$L2_RPC" | grep -q '"result":false'; do echo "Waiting for L2 to finish syncing..." sleep 10 done