Skip to content
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

Remove content routing from bitswap network #535

Open
wants to merge 1 commit into
base: move-providing-responsabilities
Choose a base branch
from

Commits on Feb 16, 2024

  1. bitswap/network,bitswap/client: move content routing responsabilities…

    … to an option of the client
    
    Given that the previous commit remove the content advertising from the server, it did not made sense to share these paths on the network.
    
    The code has been reworked:
    - addresses aren't magically added to the peerstore as a side-effect of calling `Network.FindProvidersAsync`. Instead they are passed as hints to ConnectTo which copies libp2p `host.ConnectTo` API.
    - the providerquerymanager is completely shutdown when not using `WithContentSearch` option, this helps usecase where `routinghelpers.Null` is used for content routing and the consumer exclusively rely on broadcast, like networks where most peoples have all the content (Filecoin, Celestia, ...).
    Jorropo committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    2dbd42a View commit details
    Browse the repository at this point in the history