internal/ethapi: reject non-replay-protected txs over RPC (#22339)

This PR prevents users from submitting transactions without EIP-155 enabled. This behaviour can be overridden by specifying the flag --rpc.allow-unprotected-txs=true.
This commit is contained in:
Marius van der Wijden
2021-02-23 13:09:19 +01:00
committed by GitHub
parent c4a2b682ff
commit 142fbcfd6f
9 changed files with 39 additions and 10 deletions

View File

@ -199,6 +199,7 @@ var (
utils.InsecureUnlockAllowedFlag,
utils.RPCGlobalGasCapFlag,
utils.RPCGlobalTxFeeCapFlag,
utils.AllowUnprotectedTxs,
}
whisperFlags = []cli.Flag{