Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

DIAL to every peers in WantManager when get a hash ? #1698

Closed
@LiMoMoMo

Description

@LiMoMoMo
  • Version: 0.32.3
  • Platform:
  • Subsystem: bitswap

Type:

Question

Severity:

Very Low

Description:

i added output in the libp2p module to figure out how it works.
i found that when i fetch a date(get(hash)), the libp2p dial to every peers that it connected.
the libp2p.network.findProviders(cid, maxProviders, callback) reveive paragrams to restrict the provider per request, but if when the dht is not enable, the paragrams input is not useful.

the signal-server in my demo has only 5 or 6 peers connected, its OK. But if the server connected by
hundreds nodes, connect to every nodes in the net may cause heavy performance burden.

Steps to reproduce the error:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportA question or request for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions