diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-07 16:03:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 16:03:11 +0800 |
commit | cc13d576f07fb6803e09fb42880591a67b8b0ef6 (patch) | |
tree | 6b2371c34416e3697443d836aab3a1f7fc32e77a /tests | |
parent | 71fdaa42386173da7bfa13f1728c394aeeb4eb01 (diff) | |
parent | 158d603528d2ba36b633a8f22a2bff8329f69717 (diff) | |
download | go-tangerine-cc13d576f07fb6803e09fb42880591a67b8b0ef6.tar go-tangerine-cc13d576f07fb6803e09fb42880591a67b8b0ef6.tar.gz go-tangerine-cc13d576f07fb6803e09fb42880591a67b8b0ef6.tar.bz2 go-tangerine-cc13d576f07fb6803e09fb42880591a67b8b0ef6.tar.lz go-tangerine-cc13d576f07fb6803e09fb42880591a67b8b0ef6.tar.xz go-tangerine-cc13d576f07fb6803e09fb42880591a67b8b0ef6.tar.zst go-tangerine-cc13d576f07fb6803e09fb42880591a67b8b0ef6.zip |
Merge pull request #13870 from karalabe/miners-fixes
all: clean up various error handling in core and the miner
Diffstat (limited to 'tests')
-rw-r--r-- | tests/state_test_util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/state_test_util.go b/tests/state_test_util.go index 81f49efa5..c1892cdcc 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -214,7 +214,7 @@ func RunState(chainConfig *params.ChainConfig, statedb *state.StateDB, env, tx m snapshot := statedb.Snapshot() ret, gasUsed, err := core.ApplyMessage(environment, msg, gaspool) - if core.IsNonceErr(err) || core.IsInvalidTxErr(err) || core.IsGasLimitErr(err) { + if err != nil { statedb.RevertToSnapshot(snapshot) } statedb.Commit(chainConfig.IsEIP158(environment.Context.BlockNumber)) |