Add an option to allow unprotected txs in geth (#8)
All checks were successful
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 18m50s
All checks were successful
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 18m50s
Part of [Update Optimism stack to use Bedrock release](https://www.notion.so/Update-Optimism-stack-to-use-Bedrock-release-e44a490247724a6095a9fbc19fba3bcd) - Add an env option (`CERC_ALLOW_UNPROTECTED_TXS`) to allow unprotected (non `EIP155`) txs in fixturenet geth node (disables replay protection) - Required by `fixturenet-optimism` Reviewed-on: #8 Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com> Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
parent
fc8abf7bc4
commit
af0c6a9143
@ -23,6 +23,7 @@ services:
|
||||
environment:
|
||||
CERC_REMOTE_DEBUG: ${CERC_REMOTE_DEBUG:-true}
|
||||
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
|
||||
|
@ -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}" \
|
||||
|
Loading…
Reference in New Issue
Block a user