summaryrefslogtreecommitdiff
path: root/src/or/entrynodes.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-12-18 15:00:48 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-18 15:01:05 -0500
commitd43dc120e88a61911b1bd06dc67f7da8de971a03 (patch)
tree00b30fa9c34e44214205609eee06ef6a180c9c8a /src/or/entrynodes.c
parent424572ee0a1614280ed16d99e1298bcbac262101 (diff)
downloadtor-d43dc120e88a61911b1bd06dc67f7da8de971a03.tar.gz
tor-d43dc120e88a61911b1bd06dc67f7da8de971a03.zip
finish documentation on live_consensus_is_missing
Diffstat (limited to 'src/or/entrynodes.c')
-rw-r--r--src/or/entrynodes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/entrynodes.c b/src/or/entrynodes.c
index fa8d62a4f0..292a393e51 100644
--- a/src/or/entrynodes.c
+++ b/src/or/entrynodes.c
@@ -1094,7 +1094,11 @@ select_and_add_guard_item_for_sample(guard_selection_t *gs,
return added_guard;
}
-/** Return true iff we need a consensus to maintain our */
+/**
+ * Return true iff we need a consensus to update our guards, but we don't
+ * have one. (We can return 0 here either if the consensus is _not_ missing,
+ * or if we don't need a consensus because we're using bridges.)
+ */
static int
live_consensus_is_missing(const guard_selection_t *gs)
{