From 71e3c423fda2e1e28d9aaae6257beecfb9157ba3 Mon Sep 17 00:00:00 2001 From: Fornax <23104993+fornax2@users.noreply.github.com> Date: Fri, 7 Jun 2024 10:08:25 -0300 Subject: [PATCH] Add Reth archive mode parameter. --- install/scripts/start-ec.sh | 4 ++++ install/templates/eth1.tmpl | 2 ++ 2 files changed, 6 insertions(+) diff --git a/install/scripts/start-ec.sh b/install/scripts/start-ec.sh index 73258c4..97646cb 100755 --- a/install/scripts/start-ec.sh +++ b/install/scripts/start-ec.sh @@ -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 diff --git a/install/templates/eth1.tmpl b/install/templates/eth1.tmpl index 8b76a14..c4e0e57 100644 --- a/install/templates/eth1.tmpl +++ b/install/templates/eth1.tmpl @@ -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"