Fix status script fork check
All checks were successful
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 17m36s
Test Ethereum Plugeth Fixturenet Stack / Test fixturenet-plugeth stack (push) Successful in 25m41s

This commit is contained in:
Roy Crihfield 2024-07-18 17:35:27 +08:00
parent 0d63b95f7d
commit 368dfa17ee

View File

@ -9,7 +9,7 @@ STATUSES=(
"beacon phase0" "beacon phase0"
"beacon altair" "beacon altair"
"beacon bellatrix pre-merge" "beacon bellatrix pre-merge"
"beacon bellatrix merge" "beacon post-merge"
"block number $MIN_BLOCK_NUM" "block number $MIN_BLOCK_NUM"
) )
STATUS=0 STATUS=0
@ -69,14 +69,22 @@ while [ $STATUS -lt ${#STATUSES[@]} ]; do
;; ;;
2) 2)
result=`wget --no-check-certificate --quiet -O - "$LIGHTHOUSE_BASE_URL/eth/v2/beacon/blocks/head" | jq -r '.version'` result=`wget --no-check-certificate --quiet -O - "$LIGHTHOUSE_BASE_URL/eth/v2/beacon/blocks/head" | jq -r '.version'`
if [ ! -z "$result" ] && ([ "$result" == "altair" ] || [ "$result" == "bellatrix" ]); then if [ ! -z "$result" ]; then
case "$result" in
"altair" | "bellatrix" | "capella" | "deneb")
inc_status inc_status
;;
esac
fi fi
;; ;;
3) 3)
result=`wget --no-check-certificate --quiet -O - "$LIGHTHOUSE_BASE_URL/eth/v2/beacon/blocks/head" | jq -r '.version'` result=`wget --no-check-certificate --quiet -O - "$LIGHTHOUSE_BASE_URL/eth/v2/beacon/blocks/head" | jq -r '.version'`
if [ ! -z "$result" ] && [ "$result" == "bellatrix" ]; then if [ ! -z "$result" ]; then
case "$result" in
"bellatrix" | "capella" | "deneb")
inc_status inc_status
;;
esac
fi fi
;; ;;
4) 4)