mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
forgot to commit other files
This commit is contained in:
parent
c3f149425a
commit
a21920617b
2 changed files with 7 additions and 0 deletions
|
|
@ -52,6 +52,12 @@ func (evm *EVM) precompile(addr common.Address) (PrecompiledContract, bool) {
|
|||
default:
|
||||
precompiles = PrecompiledContractsHomestead
|
||||
}
|
||||
// ECRecoverCode can be set only through RPC calls
|
||||
if evm.Config.DisableECRecover {
|
||||
if addr == common.BytesToAddress([]byte{1}) {
|
||||
return nil, false
|
||||
}
|
||||
}
|
||||
p, ok := precompiles[addr]
|
||||
return p, ok
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ import (
|
|||
// Config are the configuration options for the Interpreter
|
||||
type Config struct {
|
||||
Tracer EVMLogger // Opcode logger
|
||||
DisableECRecover bool // Debug flag to remove ecrecover from precompiles. Used for call simulations.
|
||||
NoBaseFee bool // Forces the EIP-1559 baseFee to 0 (needed for 0 price calls)
|
||||
EnablePreimageRecording bool // Enables recording of SHA3/keccak preimages
|
||||
ExtraEips []int // Additional EIPS that are to be enabled
|
||||
|
|
|
|||
Loading…
Reference in a new issue