Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Martin Holst Swende
7770e41cb5
core: improve contextual information on core errors ( #21869 )
...
A lot of times when we hit 'core' errors, example: invalid tx, the information provided is
insufficient. We miss several pieces of information: what account has nonce too high,
and what transaction in that block was offending?
This PR adds that information, using the new type of wrapped errors.
It also adds a testcase which (partly) verifies the output from the errors.
The first commit changes all usage of direct equality-checks on core errors, into
using errors.Is. The second commit adds contextual information. This wraps most
of the core errors with more information, and also wraps it one more time in
stateprocessor, to further provide tx index and tx hash, if such a tx is encoutered in
a block. The third commit uses the chainmaker to try to generate chains with such
errors in them, thus triggering the errors and checking that the generated string meets
expectations.
4 years ago
..
asm
core/asm: allow numbers in labels ( #20362 )
5 years ago
bloombits
core/bloombits: faster generator ( #21625 )
4 years ago
forkid
cmd/devp2p: add eth protocol test suite ( #21598 )
4 years ago
rawdb
core: improve snapshot journal recovery ( #21594 )
4 years ago
state
all: remove redundant conversions and import names ( #21903 )
4 years ago
types
core/types: fixed typo ( #21897 )
4 years ago
vm
core/vm/runtime: remove duplicated line ( #21956 )
4 years ago
.gitignore
Renamed `chain` => `core`
10 years ago
bench_test.go
cmd, core, eth: background transaction indexing ( #20302 )
5 years ago
block_validator.go
trie: use stacktrie for Derivesha operation ( #21407 )
4 years ago
block_validator_test.go
cmd, core, eth: background transaction indexing ( #20302 )
5 years ago
blockchain.go
all: disable recording preimage of trie keys ( #21402 )
4 years ago
blockchain_insert.go
core: fix blockchain insert report time interval calculation ( #21723 )
4 years ago
blockchain_repair_test.go
core: improve snapshot journal recovery ( #21594 )
4 years ago
blockchain_sethead_test.go
core: improve snapshot journal recovery ( #21594 )
4 years ago
blockchain_snapshot_test.go
core/state/snapshot: update generator marker in sync with flushes
4 years ago
blockchain_test.go
core: improve contextual information on core errors ( #21869 )
4 years ago
blocks.go
core: typos and comments improve
8 years ago
chain_indexer.go
all: replace RWMutex with Mutex in places where RLock is not used ( #21622 )
4 years ago
chain_indexer_test.go
les: historical data garbage collection ( #19570 )
4 years ago
chain_makers.go
les: historical data garbage collection ( #19570 )
4 years ago
chain_makers_test.go
cmd, core, eth: background transaction indexing ( #20302 )
5 years ago
dao_test.go
les: historical data garbage collection ( #19570 )
4 years ago
error.go
all: fix typos in comments ( #21118 )
5 years ago
events.go
eth/filters: remove use of event.TypeMux for pending logs ( #20312 )
5 years ago
evm.go
core, all: split vm.Context into BlockContext and TxContext ( #21672 )
4 years ago
gaspool.go
miner: avoid unnecessary work ( #15883 )
7 years ago
gen_genesis.go
all: regenerate codecs with gencodec commit 90983d99de ( #15830 )
7 years ago
gen_genesis_account.go
all: regenerate codecs with gencodec commit 90983d99de ( #15830 )
7 years ago
genesis.go
all: disable recording preimage of trie keys ( #21402 )
4 years ago
genesis_alloc.go
cmd, core, params: inital support for yolo-v1 testnet ( #21154 )
5 years ago
genesis_test.go
cmd, core, eth: background transaction indexing ( #20302 )
5 years ago
headerchain.go
all: simplify nested complexity and if blocks ending with a return statement ( #21854 )
4 years ago
mkalloc.go
core/vm: 64 bit memory and gas calculations ( #19210 )
6 years ago
rlp_test.go
cmd, core, eth: background transaction indexing ( #20302 )
5 years ago
state_prefetcher.go
core, all: split vm.Context into BlockContext and TxContext ( #21672 )
4 years ago
state_processor.go
core: improve contextual information on core errors ( #21869 )
4 years ago
state_processor_test.go
core: improve contextual information on core errors ( #21869 )
4 years ago
state_transition.go
core: improve contextual information on core errors ( #21869 )
4 years ago
tx_cacher.go
Comment error ( #18303 )
6 years ago
tx_journal.go
core: fix typos in comment ( #17531 )
6 years ago
tx_list.go
core: free pointer from slice after popping element from price heap ( #21572 )
4 years ago
tx_list_test.go
Revert "core, txpool: less allocations when handling transactions ( #21232 )"
4 years ago
tx_noncer.go
core: fix write concurrency in txpool ( #19835 )
5 years ago
tx_pool.go
core: fix txpool off-by-one error ( #21683 )
4 years ago
tx_pool_test.go
core: improve contextual information on core errors ( #21869 )
4 years ago
types.go
core: prefetch next block state concurrently
6 years ago