lightninglabs / neutrino

Privacy-Preserving Bitcoin Light Client
MIT License
900 stars 183 forks source link

blockmanager: fetch MaxCFHeadersPerMsg for checkpointed cfheaders #176

Closed wpaulino closed 5 years ago

wpaulino commented 5 years ago

In this commit, we make a simple optimization to the process of retrieving checkpointed cfheaders by reducing the amount of round trips by half. This is done by requesting MaxCFHeadersMsg (2000) filter headers per query instead of CFCheckptInterval (1000).

coveralls commented 5 years ago

Coverage Status

Coverage decreased (-0.001%) to 68.934% when pulling 364972ed3212f5dd883fc647281ad543e34c4884 on wpaulino:fetch-max-cfheaders into 588cd7314d2a62ef03ff133458a9e1d36161bd5b on lightninglabs:master.

Roasbeef commented 5 years ago

Just clocked a 48 second sync w/ this PR (pre-selected single addpeer, the rest cam dynamically from the seeds) 🔥