common.i 2.0 KB

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