[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Fix a confusing comment about tie-breaking in compute_routerstatus_consensus()



commit 03b18f62888dec3cfb59ce7caedea4cd20f9e365
Author: teor <teor2345@xxxxxxxxx>
Date:   Wed Nov 22 02:27:28 2017 +1100

    Fix a confusing comment about tie-breaking in compute_routerstatus_consensus()
    
    Closes bug 24372.
---
 src/or/dirvote.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index 6b806879a..fa8965304 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -519,7 +519,7 @@ compute_routerstatus_consensus(smartlist_t *votes, int consensus_method,
 
   /* compare_vote_rs_() sorts the items by identity digest (all the same),
    * then by SD digest.  That way, if we have a tie that the published_on
-   * date cannot tie, we use the descriptor with the smaller digest.
+   * date cannot break, we use the descriptor with the smaller digest.
    */
   smartlist_sort(votes, compare_vote_rs_);
   SMARTLIST_FOREACH_BEGIN(votes, vote_routerstatus_t *, rs) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits