Add an option to allow unprotected txs in geth #8

Merged
dboreham merged 1 commits from deep-stack/fixturenet-eth-stacks:pm-optimism-interop into main 2024-06-05 12:55:30 +00:00
2 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,7 @@ services:
CERC_RUN_STATEDIFF: ${CERC_RUN_STATEDIFF:-detect}
CERC_STATEDIFF_DB_NODE_ID: 1
CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG}
CERC_ALLOW_UNPROTECTED_TXS: ${CERC_ALLOW_UNPROTECTED_TXS:-false}
env_file:
- ../config/fixturenet-eth/fixturenet-eth.env
image: cerc/fixturenet-eth-geth:local

View File

@ -50,6 +50,12 @@ else
echo -n "$JWT" > /opt/testnet/build/el/jwtsecret
OTHER_OPTS=""
if [ "$CERC_ALLOW_UNPROTECTED_TXS" == "true" ]; then
# Allow for unprotected (non EIP155) txs to be submitted via RPC
OTHER_OPTS+=" --rpc.allow-unprotected-txs"
fi
$START_CMD \
--datadir="${CERC_ETH_DATADIR}" \
--bootnodes="${ENODE}" \
@ -80,6 +86,7 @@ else
--verbosity=${CERC_GETH_VERBOSITY:-3} \
--log.vmodule="${CERC_GETH_VMODULE}" \
--miner.etherbase="${ETHERBASE}" \
${OTHER_OPTS} \
&
geth_pid=$!