plugeth/cmd
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
..
abidump cmd: implement abidump (#19958) 2020-01-21 15:51:36 +01:00
abigen cmd/abigen: Sanitize vyper's combined json names (#20419) 2019-12-16 13:37:15 +01:00
bootnode cmd/bootnode: fix exit behavior with -genkey (#20110) 2019-10-02 11:32:02 +02:00
checkpoint-admin cmd/checkpoint-admin: add some documentation (#20697) 2020-03-18 10:18:14 +01:00
clef node: allow websocket and HTTP on the same port (#20810) 2020-04-08 13:33:12 +02:00
devp2p cmd: deprecate --testnet, use named networks instead (#20852) 2020-04-09 12:09:58 +03:00
ethkey cmd/ethkey: speed up test by using weaker scrypt parameters (#20680) 2020-02-17 13:22:52 +02:00
evm cmd/evm: Rework execution stats (#20792) 2020-04-01 12:40:07 +02:00
faucet cmd/faucet: protect f.reqs with Rlock to prevent data race (#20669) 2020-02-15 20:14:29 +02:00
geth all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03:00
p2psim all: new p2p node representation (#17643) 2018-09-25 00:59:00 +02:00
puppeth build: upgrade to golangci-lint 1.24.0 (#20901) 2020-04-08 11:07:29 +03:00
rlpdump cmd/rlpdump: allow hex input to have leading '0x' 2017-10-27 09:40:52 +01:00
utils cmd, core: remove override muir glacier and override istanbul (#20942) 2020-04-20 12:46:38 +03:00
wnode cmd/devp2p, cmd/wnode, whisper: add missing calls to Timer.Stop (#20843) 2020-04-01 16:12:01 +02:00