richardschneider / net-ipfs-engine

IPFS Core API implementation in .Net
MIT License
106 stars 48 forks source link

Bitswap accept want strategy #124

Open richardschneider opened 5 years ago

richardschneider commented 5 years ago

Need a user settable strategy to determine if the block want is acceptable from another peer. This determines if the local peer will actively look for block.

Task<Func<PeerLedger, Cid, bool>> IsWantAcceptableAsync { get; set; }