Versions in this module Expand all Collapse all v0 v0.24.1 Oct 10, 2024 Changes in this version + type BlockPresenceManager struct + func New() *BlockPresenceManager + func (bpm *BlockPresenceManager) AllPeersDoNotHaveBlock(peers []peer.ID, ks []cid.Cid) []cid.Cid + func (bpm *BlockPresenceManager) HasKey(c cid.Cid) bool + func (bpm *BlockPresenceManager) PeerDoesNotHaveBlock(p peer.ID, c cid.Cid) bool + func (bpm *BlockPresenceManager) PeerHasBlock(p peer.ID, c cid.Cid) bool + func (bpm *BlockPresenceManager) ReceiveFrom(p peer.ID, haves []cid.Cid, dontHaves []cid.Cid) + func (bpm *BlockPresenceManager) RemoveKeys(ks []cid.Cid) + func (bpm *BlockPresenceManager) RemovePeer(p peer.ID)