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

PeerPool should not respond to get peers list #1186

Closed ishantiw closed 5 years ago

ishantiw commented 5 years ago

Expected behavior

Whenever we receive list RPC call we should respond with a peer list that includes the peers from newPeers and triedPeers.

Actual behavior

Currently, PeerPool is replying to this RPC with all the connected nodes that don't include sometimes the peers from newPeers or triedPeers that are not connected.