common.i 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. # This line will be commented out if 'num_cpus' is None
  16. ${num_cpus_line}
  17. # This line will be commented out if 'num_additional_eventloops_line' is None
  18. ${num_additional_eventloops_line}
  19. # measureme
  20. MeasuremeLogFile ${measureme_log_dir}/measureme-${nick}
  21. ## Always On Testing Options ##
  22. # We enable TestingDirAuthVoteGuard to avoid Guard stability requirements
  23. TestingDirAuthVoteGuard *
  24. # We set TestingMinExitFlagThreshold to 0 to avoid Exit bandwidth requirements
  25. TestingMinExitFlagThreshold 0
  26. # VoteOnHidServDirectoriesV2 needs to be set for HSDirs to get the HSDir flag
  27. #Default VoteOnHidServDirectoriesV2 1
  28. ## Options that we always want to test ##
  29. DataDirectory $dir
  30. RunAsDaemon $daemon_int
  31. ConnLimit $connlimit
  32. Nickname $nick
  33. # Let tor close connections gracefully before exiting
  34. ShutdownWaitLength 2
  35. DisableDebuggerAttachment 0
  36. ControlPort $controlport
  37. # Use ControlSocket rather than ControlPort unix: to support older tors
  38. ControlSocket ${dir}/control
  39. CookieAuthentication 1
  40. PidFile ${dir}/pid
  41. ${log_file_lines}
  42. ${throughput_log_file_line}
  43. ProtocolWarnings 1
  44. SafeLogging 0
  45. LogTimeGranularity 1
  46. # Options that we can disable at runtime, based on env vars
  47. # Use tor's sandbox. Defaults to 1 on Linux, and 0 on other platforms.
  48. # Use CHUTNEY_TOR_SANDBOX=0 to disable, if tor's sandbox doesn't work with
  49. # your glibc.
  50. Sandbox ${sandbox}
  51. # Ask all child tor processes to exit when chutney's test-network.sh exits
  52. # (if the CHUTNEY_*_TIME options leave the network running, this option is
  53. # disabled)
  54. ${owning_controller_process}
  55. ${authorities}