mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-12 06:53:46 +00:00
Update smoke_test.sh
This commit is contained in:
parent
d5482469d0
commit
9330780bb1
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/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.coinbase)))'")
|
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
|
||||||
|
|
||||||
|
|
@ -9,7 +9,7 @@ echo "Wait ${delay} seconds for state-sync..."
|
||||||
sleep $delay
|
sleep $delay
|
||||||
|
|
||||||
|
|
||||||
balance=$(docker exec bor0 bash -c "bor attach /root/.bor/data/bor.ipc -exec 'Math.round(web3.fromWei(eth.getBalance(eth.coinbase)))'")
|
balance=$(docker exec bor0 bash -c "bor attach /root/.bor/data/bor.ipc -exec 'Math.round(web3.fromWei(eth.getBalance(eth.accounts[0])))'")
|
||||||
|
|
||||||
if ! [[ "$balance" =~ ^[0-9]+$ ]]; then
|
if ! [[ "$balance" =~ ^[0-9]+$ ]]; then
|
||||||
echo "Something is wrong! Can't find the balance of first account in bor network."
|
echo "Something is wrong! Can't find the balance of first account in bor network."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue