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

Commit

Permalink
Merge pull request #128 from LiskHQ/123-pass_connectedPeers
Browse files Browse the repository at this point in the history
Map incoming connectedUniquePeers to connnectedPeers for filter function Closes #123
  • Loading branch information
shuse2 authored Jul 30, 2019
2 parents 30631fe + 598b177 commit 6a9506d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/src/modules/network/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ module.exports = class Network {
},
getConnectedPeersCountByFilter: action => {
const { connectedUniquePeers } = this.p2p.getNetworkStatus();
const peerList = getConsolidatedPeersList({ connectedUniquePeers });
const peerList = getConsolidatedPeersList({
connectedPeers: connectedUniquePeers,
});

return getCountByFilter(peerList, action.params);
},
Expand Down

0 comments on commit 6a9506d

Please sign in to comment.