Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nick Mathewson
Tor
Commits
0ab4dc7e
Commit
0ab4dc7e
authored
Apr 29, 2019
by
Nick Mathewson
🏃
Browse files
Move bandwidth-file-headers line to appear in the correct vote section
Fixes bug 30316; bugfix on 0.3.5.1-alpha.
parent
231036a1
Changes
2
Hide whitespace changes
Inline
Side-by-side
changes/bug30316
0 → 100644
View file @
0ab4dc7e
o Minor bugfixes (directory authority):
- Move the "bandwidth-file-headers" line in directory authority votes
so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix on
0.3.5.1-alpha.
src/feature/dirauth/dirvote.c
View file @
0ab4dc7e
...
@@ -322,10 +322,10 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
...
@@ -322,10 +322,10 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
"known-flags %s
\n
"
"known-flags %s
\n
"
"flag-thresholds %s
\n
"
"flag-thresholds %s
\n
"
"params %s
\n
"
"params %s
\n
"
"%s"
/* bandwidth file headers */
"dir-source %s %s %s %s %d %d
\n
"
"dir-source %s %s %s %s %d %d
\n
"
"contact %s
\n
"
"contact %s
\n
"
"%s"
/* shared randomness information */
"%s"
/* shared randomness information */
"%s"
/* bandwidth file headers */
,
,
v3_ns
->
type
==
NS_TYPE_VOTE
?
"vote"
:
"opinion"
,
v3_ns
->
type
==
NS_TYPE_VOTE
?
"vote"
:
"opinion"
,
methods
,
methods
,
...
@@ -338,13 +338,12 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
...
@@ -338,13 +338,12 @@ format_networkstatus_vote(crypto_pk_t *private_signing_key,
flags
,
flags
,
flag_thresholds
,
flag_thresholds
,
params
,
params
,
bw_headers_line
?
bw_headers_line
:
""
,
voter
->
nickname
,
fingerprint
,
voter
->
address
,
voter
->
nickname
,
fingerprint
,
voter
->
address
,
fmt_addr32
(
addr
),
voter
->
dir_port
,
voter
->
or_port
,
fmt_addr32
(
addr
),
voter
->
dir_port
,
voter
->
or_port
,
voter
->
contact
,
voter
->
contact
,
shared_random_vote_str
?
shared_random_vote_str
?
shared_random_vote_str
:
""
,
shared_random_vote_str
:
""
);
bw_headers_line
?
bw_headers_line
:
""
);
tor_free
(
params
);
tor_free
(
params
);
tor_free
(
flags
);
tor_free
(
flags
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment