Add an option to allow unprotected txs in geth

This commit is contained in:
Prathamesh Musale 2024-04-30 12:26:22 +05:30
parent 30db1f58d0
commit e13d3f63c4
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -109,6 +109,10 @@ else
OTHER_OPTS="--miner.threads=1" OTHER_OPTS="--miner.threads=1"
fi fi
if [ "$CERC_ALLOW_UNPROTECTED_TXS" == "true" ]; then
OTHER_OPTS+=" --rpc.allow-unprotected-txs"
fi
$START_CMD \ $START_CMD \
--datadir="${CERC_ETH_DATADIR}" \ --datadir="${CERC_ETH_DATADIR}" \
--bootnodes="${ENODE}" \ --bootnodes="${ENODE}" \