bitswap: Don't send CANCEL to peer we got block from #694
Labels
need/analysis
Needs further analysis before proceeding
need/maintainers-input
Needs input from the current maintainer(s)
need/triage
Needs initial labeling and prioritization
Overview
Currently, we send CANCEL to every peer in a session once we got a block from a peer. However, the serving peer can and cleans the client's wantlint after serving the block. This suggests that sending CANCEL to the serving peer is redundant.
Proposal
Add peer parameter to
PeerManager.SendCancels
and exclude it when broadcasting cancels.The text was updated successfully, but these errors were encountered: