Skip to content

Commit

Permalink
Merge pull request #1791 from majestrate/exclude-failing-from-queue-2…
Browse files Browse the repository at this point in the history
…021-10-29

exclude fully failed nodes from service node testing list
  • Loading branch information
jagerman committed Oct 29, 2021
2 parents 0ec50e6 + fcba709 commit 1ddfb74
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llarp/consensus/reachability_testing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ namespace llarp::consensus
auto& [pk, retest_time, failures] = failing_queue.top();
if (retest_time > now)
break;
result.emplace_back(pk, failures);
if (failing.count(pk))
result.emplace_back(pk, failures);
failing_queue.pop();
}
return result;
Expand Down

0 comments on commit 1ddfb74

Please sign in to comment.