op-geth needs state.scheme=hash for archive

This commit is contained in:
Roy Crihfield 2024-08-23 00:07:11 -05:00
parent 5ac0518c27
commit 846655837f

View File

@ -26,7 +26,7 @@ fi
# Initialize geth from our generated L2 genesis file (if not already initialized)
data_dir="/datadir"
if [ ! -d "$datadir/geth" ]; then
geth init --datadir=$data_dir $l2_genesis_file
geth init --datadir=$data_dir --state.scheme=hash $l2_genesis_file
fi
# Start op-geth
@ -45,6 +45,7 @@ geth \
--ws.origins="*" \
--ws.api=debug,eth,txpool,net,engine \
--syncmode=full \
--state.scheme=hash \
--gcmode=archive \
--nodiscover \
--maxpeers=0 \