diff --git a/.env.sample.holesky b/.env.sample.holesky index 0af54bea..0177e489 100644 --- a/.env.sample.holesky +++ b/.env.sample.holesky @@ -45,6 +45,15 @@ COMPOSE_FILE=compose-el.yml:compose-cl.yml:compose-vc.yml:compose-mev.yml:docker # See available tags https://hub.docker.com/r/nethermind/nethermind/tags #NETHERMIND_VERSION= +# Nethermind ancient barrier allows you to specify how many old block bodies and receipts you want to store. +NETHERMIND_ANCIENT_BODIES_BARRIER=4500000 +NETHERMIND_ANCIENT_RECEIPTS_BARRIER=4500000 + +# History pruning (EXPERIMENTAL as of v1.33+). +# History.Pruning options: Disabled (default), Rolling, UseAncientBarriers. +NETHERMIND_HISTORY_PRUNING=Rolling +NETHERMIND_HISTORY_RETENTION_EPOCHS=82125 + # Reth docker container image version. # See available tags https://github.com/paradigmxyz/reth/pkgs/container/reth #RETH_VERSION= diff --git a/.env.sample.hoodi b/.env.sample.hoodi index 3342c17b..288ad9b8 100644 --- a/.env.sample.hoodi +++ b/.env.sample.hoodi @@ -45,6 +45,16 @@ COMPOSE_FILE=compose-el.yml:compose-cl.yml:compose-vc.yml:compose-mev.yml:docker # See available tags https://hub.docker.com/r/nethermind/nethermind/tags #NETHERMIND_VERSION= +# Nethermind ancient barrier allows you to specify how many old block bodies and receipts you want to store. +# Recommended: 1500000 for hoodi testnet. +NETHERMIND_ANCIENT_BODIES_BARRIER=1500000 +NETHERMIND_ANCIENT_RECEIPTS_BARRIER=1500000 + +# History pruning (EXPERIMENTAL as of v1.33+). +# History.Pruning options: Disabled (default), Rolling, UseAncientBarriers. +NETHERMIND_HISTORY_PRUNING=Rolling +NETHERMIND_HISTORY_RETENTION_EPOCHS=82125 + # Reth docker container image version. # See available tags https://github.com/paradigmxyz/reth/pkgs/container/reth #RETH_VERSION= diff --git a/.env.sample.mainnet b/.env.sample.mainnet index b8712e5e..d43c6421 100644 --- a/.env.sample.mainnet +++ b/.env.sample.mainnet @@ -45,6 +45,17 @@ COMPOSE_FILE=compose-el.yml:compose-cl.yml:compose-vc.yml:compose-mev.yml:docker # See available tags https://hub.docker.com/r/nethermind/nethermind/tags #NETHERMIND_VERSION= +# Nethermind ancient barrier allows you to specify how many old block bodies and receipts you want to store. +# Recommended: 20000000 for mainnet. +NETHERMIND_ANCIENT_BODIES_BARRIER=20000000 +NETHERMIND_ANCIENT_RECEIPTS_BARRIER=20000000 + +# History pruning (EXPERIMENTAL as of v1.33+). +# History.Pruning options: Disabled (default), Rolling, UseAncientBarriers. +# Keeps approximately 1 year of history (82125 epochs minimum for mainnet). +NETHERMIND_HISTORY_PRUNING=Rolling +NETHERMIND_HISTORY_RETENTION_EPOCHS=82125 + # Reth docker container image version. # See available tags https://github.com/paradigmxyz/reth/pkgs/container/reth #RETH_VERSION= diff --git a/compose-el.yml b/compose-el.yml index 0b54aac9..551931a9 100644 --- a/compose-el.yml +++ b/compose-el.yml @@ -33,8 +33,11 @@ services: --Metrics.Enabled=true --Metrics.ExposePort=8008 --Sync.SnapSync=true - --Sync.AncientBodiesBarrier=4367322 - --Sync.AncientReceiptsBarrier=4367322 + --Sync.AncientBodiesBarrier=${NETHERMIND_ANCIENT_BODIES_BARRIER:-20000000} + --Sync.AncientReceiptsBarrier=${NETHERMIND_ANCIENT_RECEIPTS_BARRIER:-20000000} + --History.Pruning=${NETHERMIND_HISTORY_PRUNING:-Rolling} + --History.RetentionEpochs=${NETHERMIND_HISTORY_RETENTION_EPOCHS:-82125} + networks: [dvnode] volumes: - ./data/nethermind:/nethermind/data @@ -59,6 +62,7 @@ services: - "promtail-monitored=${EL_RETH_PROMTAIL_MONITORED:-true}" command: | node + --full --chain=${NETWORK} --datadir=/reth/data --authrpc.jwtsecret="/root/jwt/jwt.hex" diff --git a/docker-compose.yml b/docker-compose.yml index 54667f46..423575a5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -33,8 +33,10 @@ services: --Metrics.Enabled=true --Metrics.ExposePort=8008 --Sync.SnapSync=true - --Sync.AncientBodiesBarrier=4367322 - --Sync.AncientReceiptsBarrier=4367322 + --Sync.AncientBodiesBarrier=${NETHERMIND_ANCIENT_BODIES_BARRIER:-20000000} + --Sync.AncientReceiptsBarrier=${NETHERMIND_ANCIENT_RECEIPTS_BARRIER:-20000000} + --History.Pruning=${NETHERMIND_HISTORY_PRUNING:-Rolling} + --History.RetentionEpochs=${NETHERMIND_HISTORY_RETENTION_EPOCHS:-82125} networks: [dvnode] volumes: - ./data/nethermind:/nethermind/data