aboutsummaryrefslogtreecommitdiff
path: root/src/or/networkstatus.h
diff options
context:
space:
mode:
authorrubiate <cb@viennan.net>2016-11-10 10:16:18 +1300
committerrubiate <cb@viennan.net>2016-11-10 10:16:18 +1300
commitd46c1b49a459f1249ef358b3751ef656d9e19038 (patch)
tree8063c1ba91b486fd9aeb6f35d71c2591e5e422a3 /src/or/networkstatus.h
parent0fed324c2c3862b1911a1add352f45c9a21f7a47 (diff)
downloadtor-d46c1b49a459f1249ef358b3751ef656d9e19038.tar.gz
tor-d46c1b49a459f1249ef358b3751ef656d9e19038.zip
Do not serve a consensus if it is too old
Closes ticket 20511.
Diffstat (limited to 'src/or/networkstatus.h')
-rw-r--r--src/or/networkstatus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/networkstatus.h b/src/or/networkstatus.h
index 71f36b69ed..172c0ea480 100644
--- a/src/or/networkstatus.h
+++ b/src/or/networkstatus.h
@@ -79,6 +79,8 @@ MOCK_DECL(networkstatus_t *,networkstatus_get_latest_consensus,(void));
MOCK_DECL(networkstatus_t *,networkstatus_get_latest_consensus_by_flavor,
(consensus_flavor_t f));
MOCK_DECL(networkstatus_t *, networkstatus_get_live_consensus,(time_t now));
+int networkstatus_consensus_reasonably_live(networkstatus_t *consensus,
+ time_t now);
networkstatus_t *networkstatus_get_reasonably_live_consensus(time_t now,
int flavor);
MOCK_DECL(int, networkstatus_consensus_is_bootstrapping,(time_t now));