diff options
author | Taylor Yu <catalyst@torproject.org> | 2018-05-01 18:13:37 -0500 |
---|---|---|
committer | Taylor Yu <catalyst@torproject.org> | 2018-05-08 17:59:03 -0500 |
commit | 0b80a0e500d5132ca4dd77403b5a4c7f23f26a80 (patch) | |
tree | e782cf2ccc39b28bc216ee5d600588352a465249 /src/or/networkstatus.h | |
parent | 4921670a8c155965e919debc3048a76b3e868802 (diff) | |
download | tor-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.h | 2 |
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) */ |