Skip to content

Commit

Permalink
Add Reth archive mode parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfornax committed Jun 7, 2024
1 parent a00f88d commit 71e3c42
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions install/scripts/start-ec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,10 @@ if [ "$CLIENT" = "reth" ]; then
CMD="$CMD --metrics 0.0.0.0:$EC_METRICS_PORT"
fi

if [ "$RETH_ARCHIVE_NODE" = "false" ]; then
CMD="$CMD --full"
fi

if [ ! -z "$EC_P2P_PORT" ]; then
CMD="$CMD --port $EC_P2P_PORT"
fi
Expand Down
2 changes: 2 additions & 0 deletions install/templates/eth1.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ services:
{{- else if eq .ExecutionClient.String "geth"}}
- GETH_ARCHIVE_MODE={{.Geth.ArchiveMode}}
- GETH_EVM_TIMEOUT={{.Geth.EvmTimeout}}
{{- else if eq .ExecutionClient.String "reth"}}
- RETH_ARCHIVE_MODE={{.Reth.ArchiveMode}}
{{- end}}
entrypoint: sh
command: "/setup/start-ec.sh"
Expand Down

0 comments on commit 71e3c42

Please sign in to comment.