plugeth/consensus/ethash
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
..
algorithm_test.go cmd, consensus: add option to disable mmap for DAG caches/datasets (#20484) 2020-03-31 11:44:04 +03:00
algorithm.go consensus/ethash: fix usage of *reflect.SliceHeader (#21372) 2020-11-17 11:35:58 +02:00
api.go consensus/ethash: refactor remote sealer (#20335) 2019-11-28 10:51:57 +01:00
consensus_test.go consensus/ethash: implement faster difficulty calculators (#21976) 2020-12-11 11:06:44 +01:00
consensus.go core: speed up header import (#21967) 2021-01-26 12:17:11 +01:00
difficulty.go consensus/ethash: implement faster difficulty calculators (#21976) 2020-12-11 11:06:44 +01:00
ethash_test.go consensus/ethash: increase seal timeout for tests (#22162) 2021-01-13 11:44:20 +01:00
ethash.go all: remove redundant conversions and import names (#21903) 2020-11-25 21:00:23 +01:00
sealer_test.go consensus/ethash: fix flaky test by reading seal results (#21085) 2020-05-25 18:01:03 +02:00
sealer.go les: implement new les fetcher (#20692) 2020-07-28 18:02:35 +03:00