plugeth/cmd/geth
gary rong b9df7ecdc3
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
2020-04-22 11:25:36 +03:00
..
testdata cmd/geth: add tests for account commands 2016-04-12 15:58:07 +02:00
accountcmd_test.go crypto: improve error messages in LoadECDSA (#20718) 2020-04-08 16:01:11 +02:00
accountcmd.go all: replace passPHRASE with passWORD in user interactions (#19932) 2019-08-12 12:00:38 +03:00
chaincmd.go cmd: deprecate --testnet, use named networks instead (#20852) 2020-04-09 12:09:58 +03:00
config.go cmd, core: remove override muir glacier and override istanbul (#20942) 2020-04-20 12:46:38 +03:00
consolecmd_test.go console, internal/jsre: use github.com/dop251/goja (#20470) 2020-01-27 11:50:48 +01:00
consolecmd.go cmd: deprecate --testnet, use named networks instead (#20852) 2020-04-09 12:09:58 +03:00
dao_test.go all: clean up and proerly abstract database access 2019-03-06 13:35:03 +02:00
genesis_test.go cmd/geth: fix bad genesis test (#20860) 2020-04-02 12:27:44 +02:00
main.go cmd, core: remove override muir glacier and override istanbul (#20942) 2020-04-20 12:46:38 +03:00
misccmd.go cmd/geth: remove network id from version cmd 2019-11-25 06:17:45 -05:00
retesteth_copypaste.go cmd: Add retesteth command (to support execution and generation of tests via retesteth) (#19631) 2019-06-05 14:03:23 +02:00
retesteth.go all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03:00
run_test.go all: make unit tests work with Go 1.13 (#20053) 2019-09-11 14:41:22 +02:00
usage.go cmd: deprecate --testnet, use named networks instead (#20852) 2020-04-09 12:09:58 +03:00