Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netsync: don't ask for blocks from peers on the same block height
When we're all caught up and we have a new peer, we'll ask for blocks from peers that we're on the same height. Since these peers don't have any blocks to send us, they don't reply and we disconnect from them as they timeout. To prevent this, we don't ask for blocks if the chain thinks we're current and do not have a peer that reports having a higher block.
- Loading branch information