mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-09 03:17:31 +00:00
core/vm: avoid state lookup during gas calc for call (#15061)
This commit is contained in:
parent
dc92779c0a
commit
23b51a68cb
1 changed files with 1 additions and 1 deletions
|
|
@ -324,7 +324,7 @@ func gasCall(gt params.GasTable, evm *EVM, contract *Contract, stack *Stack, mem
|
|||
eip158 = evm.ChainConfig().IsEIP158(evm.BlockNumber)
|
||||
)
|
||||
if eip158 {
|
||||
if evm.StateDB.Empty(address) && transfersValue {
|
||||
if transfersValue && evm.StateDB.Empty(address) {
|
||||
gas += params.CallNewAccountGas
|
||||
}
|
||||
} else if !evm.StateDB.Exist(address) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue