summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
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/networkstatus.c
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/networkstatus.c')
-rw-r--r--src/or/networkstatus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 93bb8643d8..d31953d761 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2193,7 +2193,9 @@ signed_descs_update_status_from_consensus_networkstatus(smartlist_t *descs)
char *
networkstatus_getinfo_helper_single(const routerstatus_t *rs)
{
- return routerstatus_format_entry(rs, NULL, NULL, NS_CONTROL_PORT, NULL);
+ return routerstatus_format_entry(rs, NULL, NULL, NS_CONTROL_PORT,
+ ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD,
+ NULL);
}
/** Alloc and return a string describing routerstatuses for the most