From feb6a80da85813d06f620efed6b4b37fe02997a2 Mon Sep 17 00:00:00 2001 From: Fornax <23104993+fornax2@users.noreply.github.com> Date: Sat, 10 Feb 2024 00:28:44 -0300 Subject: [PATCH] Add FullPruningThresholdMb --- install/scripts/start-ec.sh | 2 +- install/templates/eth1.tmpl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/install/scripts/start-ec.sh b/install/scripts/start-ec.sh index bd7e7f3..fae133e 100755 --- a/install/scripts/start-ec.sh +++ b/install/scripts/start-ec.sh @@ -169,7 +169,7 @@ if [ "$CLIENT" = "nethermind" ]; then --JsonRpc.WebSocketsPort ${EC_WS_PORT:-8546} \ --JsonRpc.JwtSecretFile=/secrets/jwtsecret \ --Pruning.FullPruningTrigger=VolumeFreeSpace \ - --Pruning.FullPruningThresholdMb=307200 \ + --Pruning.FullPruningThresholdMb=$RP_NETHERMIND_FULL_PRUNING_THRESHOLD_MB \ --Pruning.FullPruningCompletionBehavior AlwaysShutdown \ --Pruning.FullPruningMaxDegreeOfParallelism 0 \ --Pruning.FullPruningMemoryBudgetMb=$RP_NETHERMIND_FULL_PRUNE_MEMORY_BUDGET \ diff --git a/install/templates/eth1.tmpl b/install/templates/eth1.tmpl index 807b99c..282482e 100644 --- a/install/templates/eth1.tmpl +++ b/install/templates/eth1.tmpl @@ -46,6 +46,7 @@ services: - RP_NETHERMIND_ADDITIONAL_MODULES={{.Nethermind.AdditionalModules}} - RP_NETHERMIND_ADDITIONAL_URLS={{.Nethermind.AdditionalUrls}} - RP_NETHERMIND_FULL_PRUNE_MEMORY_BUDGET={{.Nethermind.FullPruneMemoryBudget}} + - RP_NETHERMIND_FULL_PRUNING_THRESHOLD_MB={{.Nethermind.FullPruningThresholdMb}} {{- else if eq .ExecutionClient.String "geth"}} - RP_GETH_ENABLE_PBSS={{.Geth.EnablePbss}} {{- end}}