浏览代码

Force authorities to vote Exit & Guard for all nodes

Use the new tor TestingDirAuthVoteExit option, and the
TestingDirAuthVoteGuard option, to make all authorities vote all relays
(and authorities) as exits and guards. This ensures that tor's
make test-network will work. But it's a sledgehammer approach.

Requires either the new tor TestingDirAuthVoteExit option, or the
issue-13161-check-torrc-options patch for chutney.
teor 11 年之前
父节点
当前提交
c18823e44b
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10 0
      torrc_templates/authority.tmpl

+ 10 - 0
torrc_templates/authority.tmpl

@@ -7,3 +7,13 @@ TestingV3AuthInitialVotingInterval 300
 TestingV3AuthInitialVoteDelay 2
 TestingV3AuthInitialDistDelay 2
 TestingV3AuthVotingStartOffset 0
+
+# Work around situations where the Exit and Guard flags aren't being set
+# These flags are set eventually, but it takes ~30 minutes
+# We could be more precise here, but it's easiest just to vote everything
+# Clients are sensible enough to filter out Exits without any exit ports, 
+# and Guards without ORPorts
+# If your tor doesn't recognise TestingDirAuthVoteExit, update your chutney
+# to a version that includes the issue-13161-check-torrc-options features
+TestingDirAuthVoteExit *
+TestingDirAuthVoteGuard *