decred / dcrwallet

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

spv: Move FetchMissingCFilter step to syncer startup #2298

Closed matheusd closed 10 months ago

matheusd commented 10 months ago

This moves the "fetching missing cfilters" stage of syncing from individual peer startup to the syncer startup.

This reduces the overall load by ensuring this stage is only done once instead of being done for each new peer.

Future PRs will continue the process of moving syncing stages from the per-peer startupSync() function to the global syncer Run() function, removing duplicate work that is currently done by the wallet.