diff --git a/reference-rpc-endpoint.json b/reference-rpc-endpoint.json index 09b76145..3f5d5bcc 100644 --- a/reference-rpc-endpoint.json +++ b/reference-rpc-endpoint.json @@ -7,5 +7,9 @@ "urls": ["https://eth.drpc.org"]}, "playnance-mainnet": { "id": 1829, - "urls": ["https://rpc.playblock.io"]} + "urls": ["https://rpc.playblock.io"]}, + "real": { + "id": 111188, + "urls": ["https://rpc.realforreal.gelato.digital"] + } } diff --git a/show-status.sh b/show-status.sh new file mode 100755 index 00000000..c4da3ec8 --- /dev/null +++ b/show-status.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +BASEPATH=/root/rpc +source $BASEPATH/.env + +IFS=':' read -ra parts <<< $COMPOSE_FILE + +blacklist=("drpc.yml" "base.yml" "rpc.yml" "monitoring.yml") + +for part in "${parts[@]}"; do + include=true + for word in "${blacklist[@]}"; do + if echo "$part" | grep -qE "$word"; then + #echo "The path $path contains a blacklisted word: $word" + include=false + fi + done + + if $include; then + result=$(./sync-status.sh "${part%.yml}") + echo "$part: $result" + fi +done + + +