Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Disconnect outbound peers periodically for shuffling - Closes #3347 #3801

Merged
merged 3 commits into from
Jun 12, 2019

Conversation

mitsuaki-u
Copy link
Contributor

What was the problem?

Peer shuffling: Over the course of 30 blocks (approximately 5 minutes), one outgoing connection is chosen uniformly at random and terminated at a random time during the interval of 30 blocks. A new outbound peer is then added to the pool via the peer populator.

How did I fix it?

Implemented outbound peer eviction functionality.

Review checklist

@mitsuaki-u mitsuaki-u requested a review from shuse2 June 11, 2019 12:12
elements/lisk-p2p/src/p2p.ts Outdated Show resolved Hide resolved
elements/lisk-p2p/test/integration/p2p.ts Outdated Show resolved Hide resolved
@jondubois jondubois merged commit 5ee6207 into feature/implement-lip-p2p Jun 12, 2019
@shuse2 shuse2 deleted the 3347_disconnect_outbound branch June 19, 2019 08:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants