mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-21 02:18:07 +00:00
core/vm: burn gas on contract address collision
This commit is contained in:
parent
e93ddc03b7
commit
6c1d9e0c66
1 changed files with 1 additions and 0 deletions
|
|
@ -549,6 +549,7 @@ func (evm *EVM) create(caller common.Address, code []byte, gas GasCosts, value *
|
|||
if evm.Config.Tracer != nil && evm.Config.Tracer.OnGasChange != nil {
|
||||
evm.Config.Tracer.OnGasChange(gas.RegularGas, 0, tracing.GasChangeCallFailedExecution)
|
||||
}
|
||||
gas.RegularGas = 0
|
||||
return nil, common.Address{}, gas, ErrContractAddressCollision
|
||||
}
|
||||
// Create a new account on the state only if the object was not present.
|
||||
|
|
|
|||
Loading…
Reference in a new issue