[wip] fix status script
This commit is contained in:
parent
e2327f8bdf
commit
444769a0aa
@ -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,13 +69,13 @@ 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" ] && ([ "$result" == "altair" ] || [ "$result" == "bellatrix" ] || [ "$result" == "capella" ] || [ "$result" == "deneb" ]); then
|
||||||
inc_status
|
inc_status
|
||||||
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" ] && ([ "$result" == "bellatrix" ] || [ "$result" == "capella" ] || [ "$result" == "deneb" ]); then
|
||||||
inc_status
|
inc_status
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user