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
When we select peers for connection, we choose a ratio of triedPeers and newPeers but there is a condition missing that when we have triedPeers lower than 100 entries then we should select peers uniformly at random from all known peers (i.e., collection triedPeers and new peers).
Motivation
According to LIP0004, we should check the condition when triedPeers are less than 100. This will ensure that we are not choosing a big ratio of triedPeers when there are not enough peers in triedPeers in the list.
Acceptance Criteria
We can add an integration test that checks if the limit (triedPeers < 100) is passed to the p2p config and condition is triggered when the triedPeers are less than 100.
The text was updated successfully, but these errors were encountered:
Description
When we select peers for connection, we choose a ratio of
triedPeers
andnewPeers
but there is a condition missing that when we have triedPeers lower than 100 entries then we should select peers uniformly at random from all known peers (i.e., collection triedPeers and new peers).Motivation
According to LIP0004, we should check the condition when triedPeers are less than 100. This will ensure that we are not choosing a big ratio of triedPeers when there are not enough peers in triedPeers in the list.
Acceptance Criteria
We can add an integration test that checks if the limit (triedPeers < 100) is passed to the p2p config and condition is triggered when the
triedPeers
are less than 100.The text was updated successfully, but these errors were encountered: