plugeth/core/state
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
..
snapshot all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03:00
database.go all: integrate the freezer with fast sync 2019-05-16 10:39:32 +03:00
dump.go eth: add debug_accountRange API (#19645) 2020-03-31 12:08:44 +02:00
iterator_test.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
iterator.go core/state: access trie through Database interface, track errors (#14589) 2017-06-27 15:57:06 +02:00
journal.go core: fix two snapshot iterator flaws, decollide snap storage prefix 2020-03-23 12:34:27 +02:00
state_object_test.go build: use golangci-lint (#20295) 2019-11-18 10:49:17 +02:00
state_object.go core/state: fix resurrection state clearing and access 2020-03-04 10:22:48 +02:00
state_test.go core: fix broken tests due to API changes + linter 2020-02-25 12:51:16 +02:00
statedb_test.go all: simplify and fix database iteration with prefix/start (#20808) 2020-04-15 14:08:53 +03:00
statedb.go core: fix two snapshot iterator flaws, decollide snap storage prefix 2020-03-23 12:34:27 +02:00
sync_test.go core: fix broken tests due to API changes + linter 2020-02-25 12:51:16 +02:00
sync.go all: integrate the freezer with fast sync 2019-05-16 10:39:32 +03:00