From b8d4588c90d399b4b4487dfbacfdbe6dd415aac4 Mon Sep 17 00:00:00 2001 From: teor Date: Sun, 15 Oct 2017 12:09:52 -0400 Subject: Add a consensus_method argument to routerstatus_format_entry() And pass ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD when it's not applicable. Preparation for #23826. --- src/or/networkstatus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/or/networkstatus.c') 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 -- cgit v1.2.3-54-g00ecf