Use state.scheme=hash (#15)
All checks were successful
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 18m34s

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: #15
This commit is contained in:
Roy Crihfield 2024-07-10 01:27:58 +00:00
parent e1faeb9eca
commit f20f91422b
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,8 @@ COPY --from=geth /usr/local/bin/geth /usr/local/bin/
COPY --from=fnetgen /opt/genesis /opt/testnet COPY --from=fnetgen /opt/genesis /opt/testnet
# Initialize the geth db with our config # 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"] ENTRYPOINT ["/opt/testnet/run.sh"]

View File

@ -75,6 +75,7 @@ else
--http.corsdomain="*" \ --http.corsdomain="*" \
--networkid="${NETWORK_ID}" \ --networkid="${NETWORK_ID}" \
--netrestrict="${NETRESTRICT}" \ --netrestrict="${NETRESTRICT}" \
--state.scheme hash \
--gcmode archive \ --gcmode archive \
--txlookuplimit=0 \ --txlookuplimit=0 \
--cache.preimages \ --cache.preimages \