bsc/consensus
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
..
clique consensus: refactor FinalizeAndAssemble to use Finalize (#21993) 2020-12-11 15:49:44 +01:00
ethash core: speed up header import (#21967) 2021-01-26 12:17:11 +01:00
misc all: fix typos in comments (#21118) 2020-05-25 10:21:28 +02:00
consensus.go les: implement new les fetcher (#20692) 2020-07-28 18:02:35 +03:00
errors.go consensus: fix possessives in comments. (#20209) 2019-10-28 09:57:34 +02:00