summaryrefslogtreecommitdiff
path: root/src/or/dirvote.h
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-10-15 12:09:52 -0400
committerteor <teor2345@gmail.com>2017-10-15 12:09:52 -0400
commitb8d4588c90d399b4b4487dfbacfdbe6dd415aac4 (patch)
tree7eaa02bfd3bc0325271c53039632a551bf90506c /src/or/dirvote.h
parent305f9476713b8c2d098dc6ba8098a4a9f39a86ad (diff)
downloadtor-b8d4588c90d399b4b4487dfbacfdbe6dd415aac4.tar.gz
tor-b8d4588c90d399b4b4487dfbacfdbe6dd415aac4.zip
Add a consensus_method argument to routerstatus_format_entry()
And pass ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD when it's not applicable. Preparation for #23826.
Diffstat (limited to 'src/or/dirvote.h')
-rw-r--r--src/or/dirvote.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/dirvote.h b/src/or/dirvote.h
index fb3e60f000..ddf32277d0 100644
--- a/src/or/dirvote.h
+++ b/src/or/dirvote.h
@@ -51,6 +51,10 @@
#define MIN_VOTE_INTERVAL_TESTING_INITIAL \
((MIN_VOTE_SECONDS_TESTING)+(MIN_DIST_SECONDS_TESTING)+1)
+/* A placeholder for routerstatus_format_entry() when the consensus method
+ * argument is not applicable. */
+#define ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD 0
+
/** The lowest consensus method that we currently support. */
#define MIN_SUPPORTED_CONSENSUS_METHOD 13