Add an option to allow unprotected txs in geth

This commit is contained in:
Prathamesh Musale 2024-05-06 13:47:01 +05:30
parent 4b7b9751fe
commit 17ca7b338a
2 changed files with 3 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

@ -9,6 +9,7 @@ NETWORK_ID=`cat /opt/testnet/el/el-config.yaml | grep 'chain_id' | awk '{ print
NETRESTRICT=`ip addr | grep 'inet ' | grep -v '127.0' | head -1 | awk '{print $2}'`
CERC_ETH_DATADIR="${CERC_ETH_DATADIR:-$HOME/ethdata}"
CERC_PLUGINS_DIR="${CERC_PLUGINS_DIR:-/usr/local/lib/plugeth}"
ALLOW_UNPROTECTED_TXS=${CERC_ALLOW_UNPROTECTED_TXS:-false} # Allow for unprotected (non EIP155) txs to be submitted via RPC
cd /opt/testnet/build/el
python3 -m http.server 9898 &
@ -54,6 +55,7 @@ else
--datadir="${CERC_ETH_DATADIR}" \
--bootnodes="${ENODE}" \
--allow-insecure-unlock \
--rpc.allow-unprotected-txs ${ALLOW_UNPROTECTED_TXS} \
--http \
--http.addr="0.0.0.0" \
--http.vhosts="*" \