Commit 2f8e96b5 authored by Sebastian Hahn's avatar Sebastian Hahn
Browse files

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.
parent 35fcec38
Loading
Loading
Loading
Loading
+1 −1
Changes for src/or/dirvote.c: 1 added line, 1 removed line.
Original line number Original line Diff line number Diff line
@@ -3080,7 +3080,7 @@ dirvote_compute_consensuses(void)
  n_votes = smartlist_len(pending_vote_list);
  n_votes = smartlist_len(pending_vote_list);
  if (n_votes <= n_voters/2) {
  if (n_votes <= n_voters/2) {
    log_warn(LD_DIR, "We don't have enough votes to generate a consensus: "
    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;
    goto err;
  }
  }
  tor_assert(pending_vote_list);
  tor_assert(pending_vote_list);