go-ethereum/integration-tests/bor_health.sh
Manav Darji 0c08204d7d integration-tests: update ipc path on ci tests (#1127)
* integration-tests: update ipc path on ci tests

* added devnetBorFlags in matic-cli-config.yml

---------

Co-authored-by: Pratik Patil <pratikspatil024@gmail.com>
2024-01-19 17:14:13 +05:30

15 lines
346 B
Bash

#!/bin/bash
set -e
while true
do
peers=$(docker exec bor0 bash -c "bor attach /root/var/lib/bor/data/bor.ipc -exec 'admin.peers'")
block=$(docker exec bor0 bash -c "bor attach /root/var/lib/bor/data/bor.ipc -exec 'eth.blockNumber'")
if [[ -n "$peers" ]] && [[ -n "$block" ]]; then
break
fi
done
echo $peers
echo $block