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
Improve network actions to expose connectedPeers and disconnectedPeers
Motivation
Right now we expose getPeers and getUniqueOutboundPeers getPeers action returns a list of all the peers with state value 0 for disconnected and 1 for connected peers but other modules usually are interested in connectedPeers and we want to get rid of state value in the future.
Also, there was an extra overhead every time we call these actions as it was going through consolidatePeers function that is used to assign state value based on connection state of peers.
Acceptance Criteria
Other modules should be able to call connectedPeer or disconnectedPeers actions without passing state filter.
The text was updated successfully, but these errors were encountered:
Description
Improve network actions to expose
connectedPeers
anddisconnectedPeers
Motivation
Right now we expose
getPeers
andgetUniqueOutboundPeers
getPeers
action returns a list of all the peers withstate
value0
for disconnected and1
for connected peers but other modules usually are interested inconnectedPeers
and we want to get rid ofstate
value in the future.Also, there was an extra overhead every time we call these actions as it was going through
consolidatePeers
function that is used to assignstate
value based on connection state of peers.Acceptance Criteria
Other modules should be able to call
connectedPeer
ordisconnectedPeers
actions without passingstate
filter.The text was updated successfully, but these errors were encountered: