Skip to content

Commit

Permalink
p2p: fix adding wrong indices to the filtered peer list
Browse files Browse the repository at this point in the history
  • Loading branch information
moneromooo-monero committed Jan 3, 2020
1 parent 907292d commit 36bdf40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p2p/net_node.inl
Expand Up @@ -1432,10 +1432,10 @@ namespace nodetool

std::deque<size_t> filtered;
const size_t limit = use_white_list ? 20 : std::numeric_limits<size_t>::max();
size_t idx = 0, skipped = 0;
for (int step = 0; step < 2; ++step)
{
bool skip_duplicate_class_B = step == 0;
size_t idx = 0, skipped = 0;
zone.m_peerlist.foreach (use_white_list, [&classB, &filtered, &idx, &skipped, skip_duplicate_class_B, limit, next_needed_pruning_stripe](const peerlist_entry &pe){
if (filtered.size() >= limit)
return false;
Expand Down

0 comments on commit 36bdf40

Please sign in to comment.