Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .env.sample.holesky
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
10 changes: 10 additions & 0 deletions .env.sample.hoodi
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
11 changes: 11 additions & 0 deletions .env.sample.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -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

Comment on lines +48 to +58

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove those in all 3.

# Reth docker container image version.
# See available tags https://github.com/paradigmxyz/reth/pkgs/container/reth
#RETH_VERSION=
Expand Down
8 changes: 6 additions & 2 deletions compose-el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Comment on lines +36 to +39

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--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}
--History.Pruning=Rolling


networks: [dvnode]
volumes:
- ./data/nethermind:/nethermind/data
Expand All @@ -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"
Expand Down
6 changes: 4 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Comment on lines +36 to +39

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--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}
--History.Pruning=Rolling

networks: [dvnode]
volumes:
- ./data/nethermind:/nethermind/data
Expand Down