-
Notifications
You must be signed in to change notification settings - Fork 74
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-have
orwant-block
) - booster-bitswap calls filter with
abcd
as a parameter and receivestrue
/false
response - if
true
bitswap server returns the block - if
false
bitswap server returnsDONT_HAVE
Examples of filter mechanisms:
- a script that takes the cid as a parameter and returns an exit code of
0
or1
- an http endpoint that takes the cid as a parameter and returns
200
or404
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