소스 검색

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 9 년 전
부모
커밋
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 *