common.i 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. TestingTorNetwork 1
  2. ## Rapid Bootstrap Testing Options ##
  3. # These typically launch a working minimal Tor network in ~20s
  4. # These parameters make tor networks bootstrap fast,
  5. # but can cause consensus instability and network unreliability
  6. # (Some are also bad for security.)
  7. AssumeReachable 1
  8. # We need at least 3 descriptors to build circuits.
  9. # In a 3 relay network, 0.67 > 2/3, so we try hard to get 3 descriptors.
  10. # In larger networks, 0.67 > 2/N, so we try hard to get >=3 descriptors.
  11. PathsNeededToBuildCircuits 0.67
  12. TestingDirAuthVoteExit *
  13. TestingDirAuthVoteHSDir *
  14. V3AuthNIntervalsValid 2
  15. ## Always On Testing Options ##
  16. # We enable TestingDirAuthVoteGuard to avoid Guard stability requirements
  17. TestingDirAuthVoteGuard *
  18. # We set TestingMinExitFlagThreshold to 0 to avoid Exit bandwidth requirements
  19. TestingMinExitFlagThreshold 0
  20. # VoteOnHidServDirectoriesV2 needs to be set for HSDirs to get the HSDir flag
  21. #Default VoteOnHidServDirectoriesV2 1
  22. ## Options that we always want to test ##
  23. Sandbox 1
  24. DataDirectory $dir
  25. RunAsDaemon 1
  26. ConnLimit $connlimit
  27. Nickname $nick
  28. # Let tor close connections gracefully before exiting
  29. ShutdownWaitLength 2
  30. DisableDebuggerAttachment 0
  31. ControlPort $controlport
  32. # Use ControlSocket rather than ControlPort unix: to support older tors
  33. ControlSocket ${dir}/control
  34. CookieAuthentication 1
  35. PidFile ${dir}/pid
  36. # Ask all child tor processes to exit when chutney's test-network.sh exits
  37. # (if the CHUTNEY_*_TIME options leave the network running, this option is
  38. # disabled)
  39. ${owning_controller_process}
  40. Log notice file ${dir}/notice.log
  41. Log info file ${dir}/info.log
  42. # Turn this off to save space
  43. #Log debug file ${dir}/debug.log
  44. ProtocolWarnings 1
  45. SafeLogging 0
  46. LogTimeGranularity 1
  47. ${authorities}