mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
chg : generalised state-sync integration test
This commit is contained in:
parent
2a677a5aff
commit
2e7e99f1c5
1 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
balanceInit=$(docker exec bor0 bash -c "bor attach /root/.bor/data/bor.ipc -exec 'Math.round(web3.fromWei(eth.getBalance(eth.accounts[0])))'")
|
||||||
|
|
||||||
delay=600
|
delay=600
|
||||||
|
|
||||||
echo "Wait ${delay} seconds for state-sync..."
|
echo "Wait ${delay} seconds for state-sync..."
|
||||||
|
|
@ -16,7 +18,7 @@ fi
|
||||||
|
|
||||||
echo "Found matic balance on account[0]: " $balance
|
echo "Found matic balance on account[0]: " $balance
|
||||||
|
|
||||||
if (( $balance <= 1001 )); then
|
if (( $balance <= $balanceInit )); then
|
||||||
echo "Balance in bor network has not increased. This indicates that something is wrong with state sync."
|
echo "Balance in bor network has not increased. This indicates that something is wrong with state sync."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue