fixturenet-eth-stacks/stack-orchestrator/container-build/cerc-fixturenet-eth-lighthouse/genesis/cl/ready.sh

11 lines
284 B
Bash
Raw Normal View History

2024-04-25 12:23:30 +00:00
#!/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