diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-04-27 21:28:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-27 21:28:19 +0800 |
commit | 1da33028ce88c4365d99471977098f4911fd38fa (patch) | |
tree | c6c40618954b558f50d82aa4b9522e01365cec9c /core/vm/evm.go | |
parent | cfe8f5fd948954ccedd975b6630e455a4e5653db (diff) | |
parent | 7a7428a027de03ad9e80e89a70818c692193e60a (diff) | |
download | go-tangerine-1da33028ce88c4365d99471977098f4911fd38fa.tar go-tangerine-1da33028ce88c4365d99471977098f4911fd38fa.tar.gz go-tangerine-1da33028ce88c4365d99471977098f4911fd38fa.tar.bz2 go-tangerine-1da33028ce88c4365d99471977098f4911fd38fa.tar.lz go-tangerine-1da33028ce88c4365d99471977098f4911fd38fa.tar.xz go-tangerine-1da33028ce88c4365d99471977098f4911fd38fa.tar.zst go-tangerine-1da33028ce88c4365d99471977098f4911fd38fa.zip |
Merge pull request #16588 from karalabe/tracer-dirty-fix
core, eth: fix tracer dirty finalization
Diffstat (limited to 'core/vm/evm.go')
-rw-r--r-- | core/vm/evm.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/vm/evm.go b/core/vm/evm.go index 96676c314..ea4620974 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -160,6 +160,11 @@ func (evm *EVM) Call(caller ContractRef, addr common.Address, input []byte, gas precompiles = PrecompiledContractsByzantium } if precompiles[addr] == nil && evm.ChainConfig().IsEIP158(evm.BlockNumber) && value.Sign() == 0 { + // Calling a non existing account, don't do antything, but ping the tracer + if evm.vmConfig.Debug && evm.depth == 0 { + evm.vmConfig.Tracer.CaptureStart(caller.Address(), addr, false, input, gas, value) + evm.vmConfig.Tracer.CaptureEnd(ret, 0, 0, nil) + } return nil, gas, nil } evm.StateDB.CreateAccount(addr) |