aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/voteflags.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-25 10:05:13 -0500
committerNick Mathewson <nickm@torproject.org>2018-11-25 10:05:13 -0500
commit36f808c9364bb2e6781e555697eac977d754e905 (patch)
treee95fc5c5093b1391bd0ca179ffdee492497b385a /src/feature/dirauth/voteflags.h
parent3741f9e524a2d3bd7239ca865d6169fd1e3dddb5 (diff)
downloadtor-36f808c9364bb2e6781e555697eac977d754e905.tar.gz
tor-36f808c9364bb2e6781e555697eac977d754e905.zip
Vote on the StaleDesc flag from prop293
The StaleDesc flag tells relays that they need to upload a new descriptor soon, or they will drop out of the consensus.
Diffstat (limited to 'src/feature/dirauth/voteflags.h')
-rw-r--r--src/feature/dirauth/voteflags.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/feature/dirauth/voteflags.h b/src/feature/dirauth/voteflags.h
index 2f0e061ea4..743a666cc8 100644
--- a/src/feature/dirauth/voteflags.h
+++ b/src/feature/dirauth/voteflags.h
@@ -25,6 +25,9 @@ void set_routerstatus_from_routerinfo(routerstatus_t *rs,
void dirserv_compute_performance_thresholds(digestmap_t *omit_as_sybil);
#ifdef VOTEFLAGS_PRIVATE
+/** Any descriptor older than this age causes the authorities to set the
+ * StaleDesc flag. */
+#define DESC_IS_STALE_INTERVAL (18*60*60)
STATIC void dirserv_set_routerstatus_testing(routerstatus_t *rs);
#endif