Fix status script fork check #18
@ -9,7 +9,7 @@ STATUSES=(
|
||||
"beacon phase0"
|
||||
"beacon altair"
|
||||
"beacon bellatrix pre-merge"
|
||||
"beacon bellatrix merge"
|
||||
"beacon post-merge"
|
||||
"block number $MIN_BLOCK_NUM"
|
||||
)
|
||||
STATUS=0
|
||||
@ -69,14 +69,22 @@ while [ $STATUS -lt ${#STATUSES[@]} ]; do
|
||||
;;
|
||||
2)
|
||||
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
|
||||
inc_status
|
||||
if [ ! -z "$result" ]; then
|
||||
case "$result" in
|
||||
"altair" | "bellatrix" | "capella" | "deneb")
|
||||
inc_status
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
3)
|
||||
result=`wget --no-check-certificate --quiet -O - "$LIGHTHOUSE_BASE_URL/eth/v2/beacon/blocks/head" | jq -r '.version'`
|
||||
if [ ! -z "$result" ] && [ "$result" == "bellatrix" ]; then
|
||||
inc_status
|
||||
if [ ! -z "$result" ]; then
|
||||
case "$result" in
|
||||
"bellatrix" | "capella" | "deneb")
|
||||
inc_status
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
4)
|
||||
|
Loading…
Reference in New Issue
Block a user