Skip to content

Commit

Permalink
Fix Nethermind auto-prune Gnosis (#1691)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne authored Dec 31, 2023
1 parent a99b786 commit 9b6cd95
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Eth Docker uses a "semver-ish" scheme.
large.
- Second through fourth digit, [semver](https://semver.org/).

This is Eth Docker v2.5.0.0
This is Eth Docker v2.5.0.1
6 changes: 3 additions & 3 deletions ethd
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ check_disk_space() {
var="NETWORK"
NETWORK=$(sed -n -e "s/^${var}=\(.*\)/\1/p" "${ENV_FILE}" || true)

if [ "${NETWORK}" = "mainnet" ]; then
if [ "${NETWORK}" = "mainnet" ] || [ "${NETWORK}" = "gnosis" ]; then
__min_free=314572800
__min_gib=300
__safe_prune=250
Expand Down Expand Up @@ -1750,7 +1750,7 @@ prune-nethermind() {
var="NETWORK"
NETWORK=$(sed -n -e "s/^${var}=\(.*\)/\1/p" "${ENV_FILE}" || true)

if [ "${NETWORK}" = "mainnet" ]; then
if [ "${NETWORK}" = "mainnet" ] || [ "${NETWORK}" = "gnosis" ]; then
__min_free=262144000
__min_gib=250
else
Expand Down Expand Up @@ -1801,7 +1801,7 @@ prune-nethermind() {
if [ $__non_interactive = 0 ]; then
while true; do
if [ "${auto_prune}" = true ]; then
if [ "${NETWORK}" = "mainnet" ]; then
if [ "${NETWORK}" = "mainnet" ] || [ "${NETWORK}" = "gnosis" ]; then
threshold="350"
else
threshold="50"
Expand Down
2 changes: 1 addition & 1 deletion nethermind/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ else
__prune="--Pruning.FullPruningMaxDegreeOfParallelism=${__parallel}"
if [ "${AUTOPRUNE_NM}" = true ]; then
__prune="${__prune} --Pruning.FullPruningTrigger=VolumeFreeSpace"
if [ "${NETWORK}" = "mainnet" ]; then
if [ "${NETWORK}" = "mainnet" ] || [ "${NETWORK}" = "gnosis" ]; then
__prune="${__prune} --Pruning.FullPruningThresholdMb=375810"
else
__prune="${__prune} --Pruning.FullPruningThresholdMb=51200"
Expand Down

0 comments on commit 9b6cd95

Please sign in to comment.