aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2013-05-07 02:24:08 -0700
committerAndrea Shepard <andrea@torproject.org>2013-05-07 02:24:08 -0700
commit9c58905a2bfd1049613173c27c357e8a20ff066a (patch)
treea4e8133475ea8720c294562dca8d764558826fd9 /src/or/dirserv.c
parentef83db4fe85f2c73b5891d5b8e53ca776dc230f8 (diff)
parenta1d7f7ea503f2f739953d6a25ebb5d93981604be (diff)
downloadtor-9c58905a2bfd1049613173c27c357e8a20ff066a.tar
tor-9c58905a2bfd1049613173c27c357e8a20ff066a.tar.gz
Merge branch 'maint-0.2.4' into master
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 3722f2000..c75f638b6 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -1889,7 +1889,7 @@ router_counts_toward_thresholds(const node_t *node, time_t now,
{
/* Have measured bw? */
int have_mbw =
- dirserv_has_measured_bw(node->ri->cache_info.identity_digest);
+ dirserv_has_measured_bw(node->identity);
uint64_t min_bw_kb = ABSOLUTE_MIN_BW_VALUE_TO_CONSIDER_KB;
const or_options_t *options = get_options();
@@ -1898,7 +1898,7 @@ router_counts_toward_thresholds(const node_t *node, time_t now,
}
return node->ri && router_is_active(node->ri, node, now) &&
- !digestmap_get(omit_as_sybil, node->ri->cache_info.identity_digest) &&
+ !digestmap_get(omit_as_sybil, node->identity) &&
(dirserv_get_credible_bandwidth_kb(node->ri) >= min_bw_kb) &&
(have_mbw || !require_mbw);
}
@@ -1959,7 +1959,7 @@ dirserv_compute_performance_thresholds(routerlist_t *rl,
if (router_counts_toward_thresholds(node, now, omit_as_sybil,
require_mbw)) {
routerinfo_t *ri = node->ri;
- const char *id = ri->cache_info.identity_digest;
+ const char *id = node->identity;
uint32_t bw_kb;
node->is_exit = (!router_exit_policy_rejects_all(ri) &&
exit_policy_is_general_exit(ri->exit_policy));