summaryrefslogtreecommitdiff
path: root/src/or/microdesc.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-11-06 14:48:22 +0200
committerNick Mathewson <nickm@torproject.org>2017-11-17 09:52:40 -0500
commit7fc64f02a3057405f9e75d70848afd2e9b95da05 (patch)
tree6f126115f02e8ffa0433c3e5cba5922e135fcfee /src/or/microdesc.h
parent1d5e693b63bffe06cb69932176eb0ac4ea4decbd (diff)
downloadtor-7fc64f02a3057405f9e75d70848afd2e9b95da05.tar.gz
tor-7fc64f02a3057405f9e75d70848afd2e9b95da05.zip
Introduce cache for outdated microdesc dirservers.
We gonna use this cache to avoid dirservers without outdated md info.
Diffstat (limited to 'src/or/microdesc.h')
-rw-r--r--src/or/microdesc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/or/microdesc.h b/src/or/microdesc.h
index 943873066e..1be12156a4 100644
--- a/src/or/microdesc.h
+++ b/src/or/microdesc.h
@@ -50,5 +50,9 @@ int we_fetch_microdescriptors(const or_options_t *options);
int we_fetch_router_descriptors(const or_options_t *options);
int we_use_microdescriptors_for_circuits(const or_options_t *options);
-#endif
+void microdesc_note_outdated_dirserver(const char *relay_digest);
+int microdesc_relay_is_outdated_dirserver(const char *relay_digest);
+void microdesc_reset_outdated_dirservers_list(void);
+
+#endif /* !defined(TOR_MICRODESC_H) */