From f20f91422b11f2f5ff002d58840967c1f4c278a9 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 10 Jul 2024 01:27:58 +0000 Subject: [PATCH] Use state.scheme=hash (#15) As of [Geth 1.14](https://github.com/ethereum/go-ethereum/releases/tag/v1.14.0), state storage defaults to `--state.scheme=path` mode for new DBs. This doesn't yet support archiving, so for now we need to explicitly use the old `hash` scheme. Reviewed-on: https://git.vdb.to/cerc-io/fixturenet-eth-stacks/pulls/15 --- .../container-build/cerc-fixturenet-eth-geth/Dockerfile | 4 +++- .../container-build/cerc-fixturenet-eth-geth/run-el.sh | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stack-orchestrator/container-build/cerc-fixturenet-eth-geth/Dockerfile b/stack-orchestrator/container-build/cerc-fixturenet-eth-geth/Dockerfile index 3afb524..cecbe3d 100644 --- a/stack-orchestrator/container-build/cerc-fixturenet-eth-geth/Dockerfile +++ b/stack-orchestrator/container-build/cerc-fixturenet-eth-geth/Dockerfile @@ -16,6 +16,8 @@ COPY --from=geth /usr/local/bin/geth /usr/local/bin/ COPY --from=fnetgen /opt/genesis /opt/testnet # Initialize the geth db with our config -RUN geth --datadir ~/ethdata init /opt/testnet/build/el/geth.json && rm -f ~/ethdata/geth/nodekey +RUN geth --datadir ~/ethdata --state.scheme hash \ + init /opt/testnet/build/el/geth.json && \ + rm -f ~/ethdata/geth/nodekey ENTRYPOINT ["/opt/testnet/run.sh"] diff --git a/stack-orchestrator/container-build/cerc-fixturenet-eth-geth/run-el.sh b/stack-orchestrator/container-build/cerc-fixturenet-eth-geth/run-el.sh index 86224b0..f074131 100755 --- a/stack-orchestrator/container-build/cerc-fixturenet-eth-geth/run-el.sh +++ b/stack-orchestrator/container-build/cerc-fixturenet-eth-geth/run-el.sh @@ -75,6 +75,7 @@ else --http.corsdomain="*" \ --networkid="${NETWORK_ID}" \ --netrestrict="${NETRESTRICT}" \ + --state.scheme hash \ --gcmode archive \ --txlookuplimit=0 \ --cache.preimages \