Ticket #8712: fix-8712.patch

File fix-8712.patch, 947 bytes (added by piet, 5 years ago)
  • src/or/dirserv.c

    From a1b23bd7b8c3c1b4466db79315fff0844182ebb7 Mon Sep 17 00:00:00 2001
    From: Peter Retzlaff <pe.retzlaff@gmail.com>
    Date: Sun, 3 May 2015 19:38:13 +0200
    Subject: [PATCH] Vote for relays to be fast and stable even when they aren't
     currently active.
    
    ---
     src/or/dirserv.c | 2 --
     1 file changed, 2 deletions(-)
    
    diff --git a/src/or/dirserv.c b/src/or/dirserv.c
    index a024be8..a5e297b 100644
    a b set_routerstatus_from_routerinfo(routerstatus_t *rs, 
    20672067  /* Already set by compute_performance_thresholds. */
    20682068  rs->is_exit = node->is_exit;
    20692069  rs->is_stable = node->is_stable =
    2070     router_is_active(ri, node, now) &&
    20712070    !dirserv_thinks_router_is_unreliable(now, ri, 1, 0);
    20722071  rs->is_fast = node->is_fast =
    2073     router_is_active(ri, node, now) &&
    20742072    !dirserv_thinks_router_is_unreliable(now, ri, 0, 1);
    20752073  rs->is_flagged_running = node->is_running; /* computed above */
    20762074