-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable filtering in delegated routing client #651
base: main
Are you sure you want to change the base?
Conversation
@@ -64,7 +64,10 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti | |||
services: { | |||
autoNAT: autoNAT(), | |||
dcutr: dcutr(), | |||
delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev'), | |||
delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', { | |||
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does the unknown
filter protocol give us here? will that increase unreachable peers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TL;DR: it's to include DHT providers, whose protocol isn't explicitly bitswap
(even though in almost all cases they support bitswap)
@@ -73,7 +73,10 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti | |||
services: { | |||
autoNAT: autoNAT(), | |||
dcutr: dcutr(), | |||
delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev'), | |||
delegatedRouting: () => createDelegatedRoutingV1HttpApiClient('https://delegated-ipfs.dev', { | |||
filterProtocols: ['unknown', 'transport-bitswap', 'transport-ipfs-gateway-http'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto for unknown
Description
Notes & open questions
Change checklist