decred / dcrwallet

A secure Decred wallet daemon written in Go (golang).
https://decred.org
ISC License
216 stars 155 forks source link

spv: Refactor initialSyncHeaders #2304

Closed matheusd closed 10 months ago

matheusd commented 10 months ago

This moves all the header fetching logic from the old getHeaders (renamed to initialSyncHeaders) to a separate getHeaders function.

In the future, this will make it easier to refactor the initial sync header fetching to perform this stage in parallel to the other stages.

This is mostly a code moving commit.