libp2p / go-libp2p-pubsub

The PubSub implementation for go-libp2p
https://github.com/libp2p/specs/tree/master/pubsub
Other
327 stars 186 forks source link

Fix bug in oversubscription pruning D_out constraint #344

Closed vyzo closed 4 years ago

vyzo commented 4 years ago

If some outbound peers were already part of the selection and near the end of it, they could slide off when rotating in outbound peers from outside the selection. This fixes the issue, by doing a first pass and rotating to the front outbound peers already part of the selection.