pandanite-crypto / pandanite

Simple, elegant, fast, Layer-1 blockchain based cryptocurrency written in 6k lines of C++
MIT License
30 stars 40 forks source link

Improve node boot times by parallelizing block download #83

Closed mr-pandabear closed 2 years ago

mr-pandabear commented 2 years ago

Still a lot of work to be done, but this at least improves download speeds and bootup times by starting chain download/verification in parallel with header download / verification. It also downloads much more data at a time by requesting data from multiple peers.

Ultimately we will want to parallelize both download and verification using some sort of producer/consumer queue but as I started thinking about it it required a much bigger refactor.