diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-16 22:12:03 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-27 18:04:43 -0400 |
commit | 4e0f7f4ffc1a0c624b8d4b3e23bd962fc488a4f7 (patch) | |
tree | cf614135838590b3e98ce0f5557d6927febe9f81 /src/or/networkstatus.h | |
parent | 4bfc64ba1c23da0bd6f5165a788cc07d934c9a9b (diff) | |
download | tor-4e0f7f4ffc1a0c624b8d4b3e23bd962fc488a4f7.tar.gz tor-4e0f7f4ffc1a0c624b8d4b3e23bd962fc488a4f7.zip |
Code to download, parse, and store microdesc consensuses
Diffstat (limited to 'src/or/networkstatus.h')
-rw-r--r-- | src/or/networkstatus.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/or/networkstatus.h b/src/or/networkstatus.h index 32b71a9ceb..ad91e9d3e4 100644 --- a/src/or/networkstatus.h +++ b/src/or/networkstatus.h @@ -53,7 +53,8 @@ routerstatus_t *router_get_consensus_status_by_nickname(const char *nickname, int warn_if_unnamed); const char *networkstatus_get_router_digest_by_nickname(const char *nickname); int networkstatus_nickname_is_unnamed(const char *nickname); -void networkstatus_consensus_download_failed(int status_code); +void networkstatus_consensus_download_failed(int status_code, + const char *flavname); void update_consensus_networkstatus_fetch_time(time_t now); int should_delay_dir_fetches(or_options_t *options); void update_networkstatus_downloads(time_t now); @@ -61,6 +62,8 @@ void update_certificate_downloads(time_t now); int consensus_is_waiting_for_certs(void); networkstatus_v2_t *networkstatus_v2_get_by_digest(const char *digest); networkstatus_t *networkstatus_get_latest_consensus(void); +networkstatus_t *networkstatus_get_latest_consensus_by_flavor( + consensus_flavor_t f); networkstatus_t *networkstatus_get_live_consensus(time_t now); networkstatus_t *networkstatus_get_reasonably_live_consensus(time_t now); #define NSSET_FROM_CACHE 1 |