mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Use a clearer idiom for node identity in router_counts_toward_thresholds
This commit is contained in:
parent
139d367f29
commit
a1d7f7ea50
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user