erigon-pulse/tests
gary rong ad9e4241b1 all: seperate consensus error and evm internal error (#20830)
* all: seperate consensus error and evm internal error

There are actually two types of error will be returned when
a tranaction/message call is executed: (a) consensus error
(b) evm internal error. The former should be converted to
a consensus issue, e.g. The sender doesn't enough asset to
purchase the gas it specifies. The latter is allowed since
evm itself is a blackbox and internal error is allowed to happen.

This PR emphasizes the difference by introducing a executionResult
structure. The evm error is embedded inside. So if any error
returned, it indicates consensus issue happens.

And also this PR improve the `EstimateGas` API to return the concrete
revert reason if the transaction always fails

* all: polish

* accounts/abi/bind/backends: add tests

* accounts/abi/bind/backends, internal: cleanup error message

* all: address comments

* core: fix lint

* accounts, core, eth, internal: address comments

* accounts, internal: resolve revert reason if possible

* accounts, internal: address comments
# Conflicts:
#	accounts/abi/abi.go
#	accounts/abi/bind/backends/simulated.go
#	cmd/geth/retesteth.go
#	core/state/snapshot/difflayer_test.go
#	core/state/snapshot/disklayer_test.go
#	core/state/snapshot/iterator_test.go
#	core/state_processor.go
#	core/state_transition.go
#	core/vm/evm.go
#	core/vm/instructions.go
#	core/vm/jump_table.go
#	eth/api_tracer.go
#	internal/ethapi/api.go
#	les/odr_test.go
#	light/odr_test.go
#	tests/state_test_util.go
2020-05-20 15:26:22 +03:00
..
contracts Remove EIP2027 (#512) 2020-05-06 09:59:50 +01:00
fuzzers post-merge fixups 2020-02-27 17:22:25 +03:00
solidity tests/solidity: add contract to test every opcode (#19283) 2019-09-26 10:30:33 +02:00
testdata@b5eb9900ee eth, les: fix time sensitive unit tests (#20741) 2020-03-16 16:40:19 +03:00
.gitignore Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
block_test_util.go remove pruning option. Inverse enabling pruning logic. (#532) 2020-05-07 14:31:14 +01:00
block_test.go [WIP] Fix block tests that were failing due to CalcTrieRoots (#536) 2020-05-09 05:44:56 +01:00
difficulty_test_util.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
difficulty_test.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
gen_btheader.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
gen_difficultytest.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
gen_stenv.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
gen_sttransaction.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
gen_vmexec.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
init_test.go tests, signer: remove staticcheck warnings (#20364) 2019-12-03 13:55:17 +01:00
init.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
pruner_test.go remove pruning option. Inverse enabling pruning logic. (#532) 2020-05-07 14:31:14 +01:00
rlp_test_util.go green tests 2019-11-13 13:52:03 +03:00
rlp_test.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
state_test_util.go all: seperate consensus error and evm internal error (#20830) 2020-05-20 15:26:22 +03:00
state_test.go Account range crash fix (#481) 2020-04-23 10:35:43 +01:00
statedb_chain_test.go Remove EIP2027 (#512) 2020-05-06 09:59:50 +01:00
statedb_insert_chain_transaction_test.go Remove EIP2027 (#512) 2020-05-06 09:59:50 +01:00
transaction_test_util.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00
transaction_test.go green tests 2019-11-13 13:52:03 +03:00
vm_test_util.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
vm_test.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00