LiskArchive / lisk-elements

⚙️ Library for sending Lisk transactions from the client or server
https://lisk.io/
GNU General Public License v3.0
250 stars 64 forks source link

Allow selection function to use P2PDiscoveredPeerInfo #1130

Closed ishantiw closed 5 years ago

ishantiw commented 5 years ago

Expected behavior

Actual behavior

Right now, selection only gets an argument that has ip, wsPort and height as peer info.

We have to change, P2PPeerInfo to include detailed peer info to make it more robust and easy to pass around P2P and PeerPool