homecoming

This commit is contained in:
root
2025-03-18 07:18:19 +02:00
parent 33975e7a6e
commit 2eaa8f99e4
41 changed files with 988 additions and 474 deletions

View File

@@ -9,6 +9,13 @@ while IFS= read -r line; do
blacklist+=("$line")
done < "$BASEPATH/path-blacklist.txt"
if $NO_SSL; then
PROTO="http"
DOMAIN="${DOMAIN:-0.0.0.0}"
else
PROTO="https"
fi
pathlist=$(cat $BASEPATH/$1.yml | grep -oP "(?<=stripprefix\.prefixes).*\"" | cut -d'=' -f2- | sed 's/.$//')
for path in $pathlist; do
@@ -20,7 +27,7 @@ for path in $pathlist; do
done
if $include; then
RPC_URL="https://$DOMAIN$path"
RPC_URL="$PROTO://$DOMAIN$path"
response_file=$(mktemp)
http_status_code=$(curl --ipv4 -m 1 -s -X POST -w "%{http_code}" -o "$response_file" -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", false],"id":1}' $RPC_URL)