stack-orchestrator/container-build/cerc-fixturenet-eth-lighthouse/genesis/cl/ready.sh
Thomas E Lackey 863548530a
Integrate ipld-eth-beacon-indexer working with the fixturenet. (#36)
* Use explicit image hash, not latest tag.

* Better syntax

* No latest

* Add fixturenet setup for beacon indexer.

* Don't wait for merge.

* Don't wait for merge.
2022-11-03 17:31:14 -05:00

11 lines
284 B
Bash
Executable File

#!/bin/bash
LIGHTHOUSE_BASE_URL=http://localhost:8001
result=`wget --no-check-certificate --quiet -O - "$LIGHTHOUSE_BASE_URL/eth/v2/beacon/blocks/head" | jq -r '.data.message.body.execution_payload.block_number'`
if [ ! -z "$result" ] && [ $result -gt 0 ]; then
exit 0
fi
exit 1