Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-v2.0] p2p: Disconnect from peers that sent too few headers
The existing full node software (dcrd) always sends batches of 2000 headers when requesting headers during Initial Block Download. The check added in this commit ensures the wallet disconnects from any peers that deviate from this behavior. While receiving less than 2000 headers could not cause any consistency or safety issues, it could slow down sync time. Backport of 34395a5.
- Loading branch information