dtr-org / unit-e

A digital currency for a new era of decentralized trust
https://unit-e.io
MIT License
45 stars 15 forks source link

Prevent node from unnecessary lookup block on disk #970

Closed frolosofsky closed 5 years ago

frolosofsky commented 5 years ago

When finalization state is available, it is not necessary to read block from disk because on the next step (finalization::StateProcessor::ProcessTipCandidate) we rely on the saved state anyway. This commit must speedup full sync process and reduce CPU consumption.

frolosofsky commented 5 years ago

Considered @scravy love as conceptACK.