-
Notifications
You must be signed in to change notification settings - Fork 77
Closed
Labels
area/retrievalArea: RetrievalArea: Retrieval
Description
Add a mechanism by which booster-bitswap can deny requests for a cid.
For example
- bitswap client requests cid
abcd(eitherwant-haveorwant-block) - booster-bitswap calls filter with
abcdas a parameter and receivestrue/falseresponse - if
truebitswap server returns the block - if
falsebitswap server returnsDONT_HAVE
Examples of filter mechanisms:
- a script that takes the cid as a parameter and returns an exit code of
0or1 - an http endpoint that takes the cid as a parameter and returns
200or404
We should experiment with these filter mechanisms to see what is most intuitive and performant.
The filter should use the WithPeerBlockRequestFilter hook to approve / deny requests for a block.
Metadata
Metadata
Assignees
Labels
area/retrievalArea: RetrievalArea: Retrieval
Type
Projects
Status
Done