This commit is contained in:
Sebastian
2024-03-19 06:11:54 +01:00
parent bbb3cd28b3
commit 0d72a7d0a7
2 changed files with 31 additions and 1 deletions

View File

@@ -7,5 +7,9 @@
"urls": ["https://eth.drpc.org"]}, "urls": ["https://eth.drpc.org"]},
"playnance-mainnet": { "playnance-mainnet": {
"id": 1829, "id": 1829,
"urls": ["https://rpc.playblock.io"]} "urls": ["https://rpc.playblock.io"]},
"real": {
"id": 111188,
"urls": ["https://rpc.realforreal.gelato.digital"]
}
} }

26
show-status.sh Executable file
View File

@@ -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