Vote for relays to be fast and stable even when they aren't currently active.

This commit is contained in:
Peter Retzlaff 2015-05-03 19:38:13 +02:00 committed by Nick Mathewson
parent e03eaa3c4a
commit fa788a54f5

View File

@ -2143,10 +2143,8 @@ set_routerstatus_from_routerinfo(routerstatus_t *rs,
/* Already set by compute_performance_thresholds. */ /* Already set by compute_performance_thresholds. */
rs->is_exit = node->is_exit; rs->is_exit = node->is_exit;
rs->is_stable = node->is_stable = rs->is_stable = node->is_stable =
router_is_active(ri, node, now) &&
!dirserv_thinks_router_is_unreliable(now, ri, 1, 0); !dirserv_thinks_router_is_unreliable(now, ri, 1, 0);
rs->is_fast = node->is_fast = rs->is_fast = node->is_fast =
router_is_active(ri, node, now) &&
!dirserv_thinks_router_is_unreliable(now, ri, 0, 1); !dirserv_thinks_router_is_unreliable(now, ri, 0, 1);
rs->is_flagged_running = node->is_running; /* computed above */ rs->is_flagged_running = node->is_running; /* computed above */