mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
recover test logic
This commit is contained in:
parent
8d3faf69d0
commit
a9659e6dcf
@ -172,7 +172,7 @@ func RunState(statedb *state.StateDB, env, tx map[string]string) ([]byte, state.
|
|||||||
vmenv := NewEnvFromMap(statedb, env, tx)
|
vmenv := NewEnvFromMap(statedb, env, tx)
|
||||||
vmenv.origin = common.BytesToAddress(keyPair.Address())
|
vmenv.origin = common.BytesToAddress(keyPair.Address())
|
||||||
ret, _, err := core.ApplyMessage(vmenv, message, coinbase)
|
ret, _, err := core.ApplyMessage(vmenv, message, coinbase)
|
||||||
if core.IsNonceErr(err) || core.IsInvalidTxErr(err) {
|
if core.IsNonceErr(err) || core.IsInvalidTxErr(err) || state.IsGasLimitErr(err) {
|
||||||
statedb.Set(snapshot)
|
statedb.Set(snapshot)
|
||||||
}
|
}
|
||||||
statedb.Update()
|
statedb.Update()
|
||||||
|
Loading…
Reference in New Issue
Block a user