diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-10-08 11:14:53 -0400 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2021-10-21 12:57:20 +0000 |
commit | fc542167cb568fc3805275e2405990423cf87e3b (patch) | |
tree | 92e4f3b18751d4af3e222cc137e732345d0d3e34 /src/test | |
parent | ba5a71b91325b52f27fff76b736af9ddd16ba540 (diff) | |
download | tor-fc542167cb568fc3805275e2405990423cf87e3b.tar.gz tor-fc542167cb568fc3805275e2405990423cf87e3b.zip |
Implement a MiddleOnly flag for vote generation.
This proposal implements part of Prop335; it's based on a patch
from Neel Chauhan.
When configured to do so, authorities will assign a MiddleOnly flag
to certain relays. Any relay which an authority gives this flag
will not get Exit, V2Dir, Guard, or HSDir, and might get BadExit if
the authority votes for that one.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_voting_flags.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_voting_flags.c b/src/test/test_voting_flags.c index 4c5f3a3270..457b0fa796 100644 --- a/src/test/test_voting_flags.c +++ b/src/test/test_voting_flags.c @@ -62,7 +62,8 @@ check_result(flag_vote_test_cfg_t *c) bool result = false; routerstatus_t rs; memset(&rs, 0, sizeof(rs)); - dirauth_set_routerstatus_from_routerinfo(&rs, &c->node, &c->ri, c->now, 0); + dirauth_set_routerstatus_from_routerinfo(&rs, &c->node, &c->ri, c->now, + 0, 0); tt_i64_op(rs.published_on, OP_EQ, c->expected.published_on); tt_str_op(rs.nickname, OP_EQ, c->expected.nickname); |