summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.h
diff options
context:
space:
mode:
authorTaylor Yu <catalyst@torproject.org>2018-05-01 18:13:37 -0500
committerTaylor Yu <catalyst@torproject.org>2018-05-08 17:59:03 -0500
commit0b80a0e500d5132ca4dd77403b5a4c7f23f26a80 (patch)
treee782cf2ccc39b28bc216ee5d600588352a465249 /src/or/networkstatus.h
parent4921670a8c155965e919debc3048a76b3e868802 (diff)
downloadtor-0b80a0e500d5132ca4dd77403b5a4c7f23f26a80.tar.gz
tor-0b80a0e500d5132ca4dd77403b5a4c7f23f26a80.zip
Factor out warn_early_consensus()
Factor out the early consensus warning code from networkstatus_set_current_consensus() into a new function warn_early_consensus().
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 0c325959d7..b133f43dc1 100644
--- a/src/or/networkstatus.h
+++ b/src/or/networkstatus.h
@@ -153,6 +153,8 @@ int any_client_port_set(const or_options_t *options);
#ifdef TOR_UNIT_TESTS
STATIC int networkstatus_set_current_consensus_from_ns(networkstatus_t *c,
const char *flavor);
+STATIC void warn_early_consensus(const networkstatus_t *c, const char *flavor,
+ time_t now);
extern networkstatus_t *current_ns_consensus;
extern networkstatus_t *current_md_consensus;
#endif /* defined(TOR_UNIT_TESTS) */