LiskArchive / lisk-sdk

🔩 Lisk software development kit
https://lisk.com
Apache License 2.0
2.72k stars 456 forks source link

Alternative for getUniqueOutboundConnectedPeersCount and consensus calculation #4178

Closed jondubois closed 5 years ago

jondubois commented 5 years ago

Description

The getUniqueOutboundConnectedPeers method doesn't fit well with the rest of the P2P library API. Instead, there should be a method to expose all outbound PeerInfo and another method for all inbound PeerInfo.

It's important for the Network module to expose methods that allow other modules to analyse the network in flexible ways. For this to happen, the Network module API should be as simple as possible while also exposing as much information as possible.

We don't want the API to end up with hundreds of related methods with complex names and have hundreds of different ways to get the same data.

Motivation

Acceptance Criteria

shuse2 commented 5 years ago

usage of getUniqueOutboundConnectedPeersCount will be removed by #4265

shuse2 commented 5 years ago

Superseded by #4425