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
Description
- 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.