forked from cerc-io/stack-orchestrator
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.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
@@ -32,8 +32,8 @@ else
|
||||
sleep 5
|
||||
result=`wget --no-check-certificate --quiet -O - --timeout=0 $LIGHTHOUSE_GENESIS_STATE_URL | jq -r '.data.genesis_time'`
|
||||
if [ ! -z "$result" ]; then
|
||||
./reset_genesis_time.sh $result
|
||||
break;
|
||||
./reset_genesis_time.sh $result
|
||||
break;
|
||||
fi
|
||||
done
|
||||
fi
|
||||
@@ -44,8 +44,8 @@ else
|
||||
sleep 5
|
||||
result=`wget --no-check-certificate --quiet -O - --timeout=0 $ENR_URL`
|
||||
if [ ! -z "$result" ]; then
|
||||
export ENR="$result"
|
||||
break;
|
||||
export ENR="$result"
|
||||
break;
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user