From a215ad564cc654383be5cb7d95c0c53c626a1c01 Mon Sep 17 00:00:00 2001 From: Yorick Downe Date: Wed, 18 Feb 2026 11:33:58 +0000 Subject: [PATCH] Support Geth pre-cancun prune --- geth/docker-entrypoint.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/geth/docker-entrypoint.sh b/geth/docker-entrypoint.sh index b8e0ce4d..9e8fe6f4 100755 --- a/geth/docker-entrypoint.sh +++ b/geth/docker-entrypoint.sh @@ -133,6 +133,18 @@ case "${NODE_TYPE}" in ;; esac ;; + pre-cancun-expiry) + case "${NETWORK}" in + mainnet|sepolia) + echo "Geth minimal node with pre-cancun history expiry" + __prune="--history.chain postcancun" + ;; + *) + echo "There is no pre-Cancun history for ${NETWORK} network, \"pre-cancun-expiry\" has no effect." + __prune="" + ;; + esac + ;; *) echo "ERROR: The node type ${NODE_TYPE} is not known to Eth Docker's Geth implementation." sleep 30 @@ -172,7 +184,7 @@ if [[ -f /var/lib/geth/prune-marker ]]; then fi # Word splitting is desired for the command line parameters # shellcheck disable=SC2086 - exec "$@" ${__datadir} ${__ancient} ${__network} ${EL_EXTRAS} prune-history + exec "$@" ${__datadir} ${__ancient} ${__network} ${__prune} ${EL_EXTRAS} prune-history else exec "$@" ${__datadir} ${__ancient} ${__network} ${__prune} ${__blobs} ${__trace} ${__verbosity} ${EL_EXTRAS} fi