Advertisement
tromp

Untitled

Nov 18th, 2017
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. tromp@MS-7850:~/grin/testnet1/server$ cat grin.toml
  2. # Sample Server Configuration File for Grin
  3. #
  4. # When running the grin executable without specifying any command line
  5. # arguments, it will look for this file in three places, in the following
  6. # order:
  7. #
  8. # -The working directory
  9. # -The directory in which the executable resides
  10. # -[user home]/.grin
  11. #
  12.  
  13. #########################################
  14. ### SERVER CONFIGURATION ###
  15. #########################################
  16.  
  17. #Server connection details
  18. [server]
  19.  
  20. #the address on which services will listen, e.g. Transaction Pool
  21.  
  22. api_http_addr = "127.0.0.1:13413"
  23.  
  24. #the directory, relative to current, in which the grin blockchain
  25. #is stored
  26.  
  27. db_root = ".grin"
  28.  
  29. #How to seed this server, can be None, List or WebStatic
  30. #
  31. #seeding_type = "None"
  32.  
  33. #If seeding_type = List, the list of peers to connect to.
  34. #
  35. #seeds = ["192.168.0.1:8080","192.168.0.2:8080"]
  36.  
  37. #The chain type, which defines the genesis block and the set of cuckoo
  38. #parameters used for mining. Can be:
  39. #AutomatedTesting - For CI builds and instant blockchain creation
  40. #UserTesting - For regular user testing (cuckoo 16)
  41. #Testnet1 - Full production cuckoo parameter (cuckoo 30)
  42. #
  43. chain_type = "UserTesting"
  44.  
  45. #7 = Bit flags for FULL_NODE, this structure needs to be changed
  46. #internally to make it more configurable
  47.  
  48. capabilities = [7]
  49.  
  50. #The P2P server details (i.e. the server that communicates with other
  51. #grin server nodes
  52.  
  53. [server.p2p_config]
  54. host = "0.0.0.0"
  55. port = 13414
  56.  
  57. #########################################
  58. ### LOGGING CONFIGURATION ###
  59. #########################################
  60.  
  61. [logging]
  62.  
  63. # Whether to log to stdout
  64. log_to_stdout = true
  65.  
  66. # Log level for stdout: Critical, Error, Warning, Info, Debug, Trace
  67. stdout_log_level = "Debug"
  68.  
  69. # Whether to log to a file
  70. log_to_file = true
  71.  
  72. # Log level for file: Critical, Error, Warning, Info, Debug, Trace
  73. file_log_level = "Trace"
  74.  
  75. # Log file path
  76. log_file_path = "grin.log"
  77.  
  78. # Whether to append to the log file (true), or replace it on every run (false)
  79. log_file_append = true
  80.  
  81. #########################################
  82. ### MINING CONFIGURATION ###
  83. #########################################
  84.  
  85. #Mining details. This section is optional. If it's not here, the server
  86. #will default to not mining.
  87. [mining]
  88.  
  89. #flag whether mining is enabled
  90.  
  91. enable_mining = false
  92.  
  93. #Whether to use cuckoo-miner, and related parameters
  94.  
  95. use_cuckoo_miner = true
  96.  
  97. #Whether to use async mode for cuckoo miner, if the plugin supports it.
  98. #this allows for many searches to be run in parallel, e.g. if the system
  99. #has multiple GPUs, or if you want to mine using multiple plugins
  100.  
  101. cuckoo_miner_async_mode = false
  102.  
  103. #If using cuckoo_miner, the directory in which plugins are installed
  104. #if not specified, grin will look in the directory /deps relative
  105. #to the executable
  106.  
  107. #cuckoo_miner_plugin_dir = "target/debug/plugins"
  108.  
  109. #The amount of time, in seconds, to attempt to mine on a particular
  110. #header before stopping and re-collecting transactions from the pool
  111.  
  112. attempt_time_per_block = 90
  113.  
  114. #the wallet reciever to which coinbase rewards will be sent
  115.  
  116. wallet_receiver_url = "http://127.0.0.1:13415"
  117.  
  118. #whether to ignore the reward (mostly for testing)
  119.  
  120. burn_reward = false
  121.  
  122. #testing value, optional
  123. #slow_down_in_millis = 30
  124.  
  125. #########################################
  126. ### CUCKOO MINER PLUGIN CONFIGURATION ###
  127. #########################################
  128.  
  129. # These entries configure instances of cuckoo miner
  130. # plugins if the 'use_cuckoo_miner' value above is
  131. # set to 'true'.
  132. #
  133. # Multiple plugins can be specified, (e.g. a cpu
  134. # miner and a gpu miner running in parallel). However,
  135. # if 'use_async_mode' above is set to 'false', only
  136. # the first plugin specified will be used for mining
  137. # in single-threaded mode
  138.  
  139. # You'll likely get the best performance using a
  140. # single GPU and single CPU plugin in parallel
  141.  
  142. #The fastest cpu algorithm, but consumes the most memory
  143. #Also requires instructions that aren't available on
  144. #older processors. In this case, use mean_compat_cpu
  145. #instead
  146. [[mining.cuckoo_miner_plugin_config]]
  147. type_filter = "mean_cpu"
  148. parameter_list = {NUM_THREADS=1, NUM_TRIMS=68}
  149.  
  150. #Same as above, but for older processors. Will be slightly
  151. #slower.
  152. #[[mining.cuckoo_miner_plugin_config]]
  153. #type_filter = "mean_compat_cpu"
  154. #parameter_list = {NUM_THREADS=4, NUM_TRIMS=68}
  155.  
  156. #note lean_cpu currently has a bug which prevents it from
  157. #working with threads > 1
  158.  
  159. #[[mining.cuckoo_miner_plugin_config]]
  160. #type_filter = "lean_cpu"
  161. #parameter_list = {NUM_THREADS=1, NUM_TRIMS=7}
  162.  
  163. #CUDA verion of lean miner
  164. #Can currently be used only in Production (30) Mode
  165. #This plugin is not built by default. To build:
  166. #1) Ensure the latest cuda toolkit is installed
  167. # (nvcc should be on the pat)
  168. #2) Uncomment the 'build-cuda-plugin' feature
  169. # in pow/Cargo.toml
  170.  
  171. #[[mining.cuckoo_miner_plugin_config]]
  172. #type_filter = "lean_cuda"
  173. #parameter_list = {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement