decred / dcrwallet

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

spv: Move validate header chain difficulties to earlier point in startup sync #2297

Closed matheusd closed 8 months ago

matheusd commented 8 months ago

This moves the header chain difficulty validation to an earlier point in time of the initial sync process.

This is preferable so that less work is performed in case invalid headers are received.

This PR includes a commit to move the p2p package logs to a separate subsystem, so that the syncing process can be logged with a higher logging level while not producing significant log spam due to individually logging each peer message.

Part of #2289