helium / erlang-libp2p

An Erlang implementation of libp2p swarms
https://helium.github.io/erlang-libp2p
Apache License 2.0
121 stars 34 forks source link

peerbook random should not count stale peers against it's total check amount #398

Open evanmcc opened 3 years ago

evanmcc commented 3 years ago

currently getting a stale peer is counted against the number of tries, and it shouldn't be, as when the network is badly degraded the chance of getting a sync peer gets lower and lower, making things even worse.