go-ethereum/core
Martin Holst Swende 681618275c
core: speed up header import (#21967)
This PR implements the following modifications

- Don't shortcut check if block is present, thus avoid disk lookup
- Don't check hash ancestry in early-check (it's still done in parallel checker)
- Don't check time.Now for every single header

Charts and background info can be found here: https://github.com/holiman/headerimport/blob/main/README.md
With these changes, writing 1M headers goes down to from 80s to 62s.
2021-01-26 12:17:11 +01:00
..
asm
bloombits eth, core: speed up some tests (#22000) 2020-12-15 18:52:51 +01:00
forkid core, eth: split eth package, implement snap protocol (#21482) 2020-12-14 10:27:15 +01:00
rawdb core: speed up header import (#21967) 2021-01-26 12:17:11 +01:00
state core/state: fix panic in state dumping (#22225) 2021-01-26 12:15:31 +01:00
types
vm common,crypto: move fuzzers out of core (#22029) 2020-12-23 17:44:45 +01:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go
block_validator.go
block_validator_test.go
blockchain.go core: reset to genesis when middle block is missing (#22135) 2021-01-25 14:29:45 +01:00
blockchain_insert.go
blockchain_repair_test.go
blockchain_sethead_test.go
blockchain_snapshot_test.go core/state/snapshot: write snapshot generator in batch (#22163) 2021-01-18 14:39:43 +01:00
blockchain_test.go core: improve contextual information on core errors (#21869) 2020-12-04 12:22:19 +01:00
blocks.go
chain_indexer.go
chain_indexer_test.go les: historical data garbage collection (#19570) 2020-07-13 11:02:54 +02:00
chain_makers.go
chain_makers_test.go
dao_test.go
error.go
events.go
evm.go
gaspool.go
gen_genesis.go
gen_genesis_account.go
genesis.go
genesis_alloc.go
genesis_test.go cmd, core, eth: background transaction indexing (#20302) 2020-05-11 18:58:43 +03:00
headerchain.go core: speed up header import (#21967) 2021-01-26 12:17:11 +01:00
headerchain_test.go core,les: headerchain import in batches (#21471) 2020-12-09 11:13:02 +01:00
mkalloc.go
rlp_test.go
state_prefetcher.go
state_processor.go core: improve contextual information on core errors (#21869) 2020-12-04 12:22:19 +01:00
state_processor_test.go core: improve contextual information on core errors (#21869) 2020-12-04 12:22:19 +01:00
state_transition.go core: improve contextual information on core errors (#21869) 2020-12-04 12:22:19 +01:00
tx_cacher.go
tx_journal.go core: fix typos in comment (#17531) 2018-08-28 10:04:33 +03:00
tx_list.go core/txpool: remove "local" notion from the txpool price heap (#21478) 2020-12-11 10:44:57 +01:00
tx_list_test.go
tx_noncer.go
tx_pool.go core/txpool: remove "local" notion from the txpool price heap (#21478) 2020-12-11 10:44:57 +01:00
tx_pool_test.go core/txpool: remove "local" notion from the txpool price heap (#21478) 2020-12-11 10:44:57 +01:00
types.go