summaryrefslogtreecommitdiff
path: root/src/feature/dirauth/voteflags.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-12-05 09:24:51 -0500
committerNick Mathewson <nickm@torproject.org>2018-12-05 09:24:51 -0500
commit1f95e80351cdb45de0994a0a3aba277267d41ad0 (patch)
tree6e97361353b913618e71441400b34cb560a2679e /src/feature/dirauth/voteflags.h
parentd4f558e385fd9e3f757278653d22290c3816c39e (diff)
parenta2f81b644b2a4679c634744d3830cdb6397f0814 (diff)
downloadtor-1f95e80351cdb45de0994a0a3aba277267d41ad0.tar.gz
tor-1f95e80351cdb45de0994a0a3aba277267d41ad0.zip
Merge branch 'prop293_squashed'
Diffstat (limited to 'src/feature/dirauth/voteflags.h')
-rw-r--r--src/feature/dirauth/voteflags.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/feature/dirauth/voteflags.h b/src/feature/dirauth/voteflags.h
index 2f0e061ea4..8dce9fbb04 100644
--- a/src/feature/dirauth/voteflags.h
+++ b/src/feature/dirauth/voteflags.h
@@ -19,12 +19,16 @@ int running_long_enough_to_decide_unreachable(void);
void set_routerstatus_from_routerinfo(routerstatus_t *rs,
node_t *node,
- routerinfo_t *ri, time_t now,
+ const routerinfo_t *ri,
+ time_t now,
int listbadexits);
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