autoheal sonic

This commit is contained in:
goldsquid
2025-11-24 14:37:18 +07:00
parent e3b8405a1f
commit 94de26a009

View File

@@ -22,6 +22,10 @@ else
# GOMEMLIMIT=28GiB exec sonictool --datadir "$datadir" --cache 12000 heal # GOMEMLIMIT=28GiB exec sonictool --datadir "$datadir" --cache 12000 heal
fi fi
# after every restart I needed to do this manually so lets just do it automatically each time
GOMEMLIMIT="${CACHE_GB}GiB" sonictool --datadir "$datadir" --cache "${CACHE_GB}000" heal
#echo "Generating new Geth node key..." #echo "Generating new Geth node key..."
#openssl rand 32 | xxd -p -c 32 | tr -d '\n' > "$datadir/nodekey" #openssl rand 32 | xxd -p -c 32 | tr -d '\n' > "$datadir/nodekey"