plugeth/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
forkid
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
.gitignore
bench_test.go
block_validator_test.go
block_validator.go
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
blockchain.go core: reset to genesis when middle block is missing (#22135) 2021-01-25 14:29:45 +01:00
blocks.go
chain_indexer_test.go
chain_indexer.go
chain_makers_test.go
chain_makers.go
dao_test.go
error.go
events.go
evm.go
gaspool.go
gen_genesis_account.go
gen_genesis.go
genesis_alloc.go
genesis_test.go
genesis.go
headerchain_test.go
headerchain.go core: speed up header import (#21967) 2021-01-26 12:17:11 +01:00
mkalloc.go
rlp_test.go
state_prefetcher.go
state_processor_test.go
state_processor.go
state_transition.go
tx_cacher.go
tx_journal.go
tx_list_test.go
tx_list.go
tx_noncer.go
tx_pool_test.go
tx_pool.go
types.go