-
Notifications
You must be signed in to change notification settings - Fork 1.2k
DIAL to every peers in WantManager when get a hash ? #1698
Comments
@jacobheun does this sound like expected behaviour? |
So currently This is the expected behavior, but we should probably look at adding support for maxProviders before we start turning on the dht by default. cc @vasco-santos |
@LiMoMoMo does that answer you question? |
FYI: we now support the improved options in libp2p 0.24 and the latest kad-dht. I've got a PR for bitswap, ipfs/js-ipfs-bitswap#183, to update the call. Hopefully we can get this into the js-ipfs 0.34 release. |
yes, thank you ! |
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 thedht
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 byhundreds nodes, connect to every nodes in the net may cause heavy performance burden.
Steps to reproduce the error:
The text was updated successfully, but these errors were encountered: