mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
Fix log message when we have too few dirauths
The calculation of when to send the logmessage was correct, but we didn't give the correct number of relays required: We want more than half of all authorities we know about. Fixes bug 2663.
This commit is contained in:
parent
35fcec3880
commit
2f8e96b553
@ -3080,7 +3080,7 @@ dirvote_compute_consensuses(void)
|
||||
n_votes = smartlist_len(pending_vote_list);
|
||||
if (n_votes <= n_voters/2) {
|
||||
log_warn(LD_DIR, "We don't have enough votes to generate a consensus: "
|
||||
"%d of %d", n_votes, n_voters/2);
|
||||
"%d of %d", n_votes, n_voters/2+1);
|
||||
goto err;
|
||||
}
|
||||
tor_assert(pending_vote_list);
|
||||
|
Loading…
Reference in New Issue
Block a user