Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netsync: fix bug in peer selection logic
On fetchHeaderBlocks and fetchUtreexoHeaders, we make sure that both the syncPeer and the passed in peer are not nil. We also only prefer the passed in peer if it is not nil.
- Loading branch information