Add an option to allow unprotected txs in geth
All checks were successful
Ethereum Fixturenet Stack Test / Run Ethereum Fixturenet stack test (pull_request) Successful in 21m18s

This commit is contained in:
Prathamesh Musale 2024-05-06 13:47:01 +05:30
parent 4b7b9751fe
commit 8d5ca50104
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=$!