diff options
author | teor <teor2345@gmail.com> | 2017-10-15 12:09:52 -0400 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2017-10-15 12:09:52 -0400 |
commit | b8d4588c90d399b4b4487dfbacfdbe6dd415aac4 (patch) | |
tree | 7eaa02bfd3bc0325271c53039632a551bf90506c /src/or/dirvote.c | |
parent | 305f9476713b8c2d098dc6ba8098a4a9f39a86ad (diff) | |
download | tor-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.c')
-rw-r--r-- | src/or/dirvote.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c index ee6691cbb7..12aa2363c5 100644 --- a/src/or/dirvote.c +++ b/src/or/dirvote.c @@ -278,7 +278,9 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key, vote_microdesc_hash_t *h; rsf = routerstatus_format_entry(&vrs->status, vrs->version, vrs->protocols, - NS_V3_VOTE, vrs); + NS_V3_VOTE, + ROUTERSTATUS_FORMAT_NO_CONSENSUS_METHOD, + vrs); if (rsf) smartlist_add(chunks, rsf); @@ -2100,7 +2102,8 @@ networkstatus_compute_consensus(smartlist_t *votes, char *buf; /* Okay!! Now we can write the descriptor... */ /* First line goes into "buf". */ - buf = routerstatus_format_entry(&rs_out, NULL, NULL, rs_format, NULL); + buf = routerstatus_format_entry(&rs_out, NULL, NULL, + rs_format, consensus_method, NULL); if (buf) smartlist_add(chunks, buf); } |