You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
Since the network is still fairly unstable having peers in the dht that are no longer dialable is going to be an issue we need to address. The blacklisting is likely due to this.
The provide shouldn't ignore the errors, I think it should continue trying further peers until it hits kValue (20) peers. Also, if we fail to connect to the peer they should probably get removed from the table or at least penalized up to some threshold before removal.
If we don't provide to enough peers we risk findProviders having a higher failure rate for other peers.
Right now getClosestProviders returns only kValue peers. It would be great to be able to continue to pull from it until we've messaged enough peers.
reproduction / error flow
async/each
over peers and callthis.network.sendMessage(peer, msg, cb)
async/each
to end with errorjs-libp2p-kad-dht/src/index.js
Lines 530 to 542 in 9db17eb
suggestions:
The text was updated successfully, but these errors were encountered: