darkfid_config.toml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. ## darkfid configuration file
  2. ##
  3. ## Please make sure you go through all the settings so you can configure
  4. ## your daemon properly.
  5. ##
  6. ## The default values are left commented. They can be overridden either by
  7. ## uncommenting, or by using the command-line.
  8. # JSON-RPC listen URL
  9. rpc_listen = "tcp://127.0.0.1:8340"
  10. # Blockchain network to use
  11. network = "testnet"
  12. # Localnet blockchain network configuration
  13. [network_config."localnet"]
  14. # Path to the blockchain database directory
  15. database = "~/.local/darkfi/darkfid_blockchain_localnet"
  16. # Finalization threshold, denominated by number of blocks
  17. threshold = 3
  18. # minerd JSON-RPC endpoint
  19. minerd_endpoint = "tcp://127.0.0.1:28467"
  20. # PoW block production target, in seconds
  21. pow_target = 10
  22. # Optional fixed PoW difficulty, used for testing
  23. pow_fixed_difficulty = 1
  24. # Participate in block production
  25. miner = true
  26. # Wallet address to receive mining rewards.
  27. # This is a dummy one so the miner can start,
  28. # replace with your own one.
  29. recipient = "5ZHfYpt4mpJcwBNxfEyxLzeFJUEeoePs5NQ5jVEgHrMf"
  30. # Skip syncing process and start node right away
  31. skip_sync = true
  32. # Optional sync checkpoint height
  33. #checkpoint_height = 0
  34. # Optional sync checkpoint hash
  35. #checkpoint = ""
  36. ## Localnet P2P network settings
  37. [network_config."localnet".net]
  38. # P2P accept addresses the instance listens on for inbound connections
  39. inbound = ["tcp+tls://0.0.0.0:8242"]
  40. # P2P external addresses the instance advertises so other peers can
  41. # reach us and connect to us, as long as inbound addrs are configured.
  42. #external_addrs = []
  43. # Peer nodes to manually connect to
  44. #peers = []
  45. # Seed nodes to connect to for peer discovery and/or adversising our
  46. # own external addresses
  47. #seeds = []
  48. # Whitelisted network transports for outbound connections
  49. #allowed_transports = ["tcp+tls"]
  50. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  51. #transport_mixing = true
  52. # Outbound connection slots number, this many connections will be
  53. # attempted. (This does not include manual connections)
  54. #outbound_connections = 8
  55. # Inbound connections slots number, this many active inbound connections
  56. # will be allowed. (This does not include manual or outbound connections)
  57. #inbound_connections = 0
  58. # Manual connections retry limit, 0 for forever looping
  59. #manual_attempt_limit = 0
  60. # Outbound connection timeout (in seconds)
  61. #outbound_connect_timeout = 10
  62. # Exchange versions (handshake) timeout (in seconds)
  63. #channel_handshake_timeout = 4
  64. # Ping-pong exchange execution interval (in seconds)
  65. #channel_heartbeat_interval = 10
  66. # Allow localnet hosts
  67. localnet = true
  68. # Cooling off time for peer discovery when unsuccessful
  69. #outbound_peer_discovery_cooloff_time = 30
  70. # Time between peer discovery attempts
  71. #outbound_peer_discovery_attempt_time = 5
  72. # Testnet blockchain network configuration
  73. [network_config."testnet"]
  74. # Path to the blockchain database directory
  75. database = "~/.local/darkfi/darkfid_blockchain_testnet"
  76. # Finalization threshold, denominated by number of blocks
  77. threshold = 6
  78. # minerd JSON-RPC endpoint
  79. minerd_endpoint = "tcp://127.0.0.1:28467"
  80. # PoW block production target, in seconds
  81. pow_target = 90
  82. # Participate in block production
  83. miner = false
  84. # Wallet address to receive mining rewards.
  85. #recipient = "YOUR_WALLET_ADDRESS_HERE"
  86. # Skip syncing process and start node right away
  87. skip_sync = false
  88. # Optional sync checkpoint height
  89. #checkpoint_height = 0
  90. # Optional sync checkpoint hash
  91. #checkpoint = ""
  92. ## Testnet P2P network settings
  93. [network_config."testnet".net]
  94. # P2P accept addresses the instance listens on for inbound connections
  95. # You can also use an IPv6 address
  96. inbound = ["tcp+tls://0.0.0.0:8342"]
  97. # IPv6 version:
  98. #inbound = ["tcp+tls://[::]:8342"]
  99. # Combined:
  100. #inbound = ["tcp+tls://0.0.0.0:8342", "tcp+tls://[::]:8342"]
  101. # P2P external addresses the instance advertises so other peers can
  102. # reach us and connect to us, as long as inbound addrs are configured.
  103. # You can also use an IPv6 address
  104. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8342"]
  105. # IPv6 version:
  106. #external_addrs = ["tcp+tls://[ipv6 address here]:8342"]
  107. # Combined:
  108. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8342", "tcp+tls://[ipv6 address here]:8342"]
  109. # Peer nodes to manually connect to
  110. #peers = []
  111. # Seed nodes to connect to for peer discovery and/or adversising our
  112. # own external addresses
  113. seeds = ["tcp+tls://lilith0.dark.fi:8342", "tcp+tls://lilith1.dark.fi:8342"]
  114. # Whitelisted network transports for outbound connections
  115. allowed_transports = ["tcp+tls"]
  116. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  117. #transport_mixing = true
  118. # Outbound connection slots number, this many connections will be
  119. # attempted. (This does not include manual connections)
  120. outbound_connections = 8
  121. # Inbound connections slots number, this many active inbound connections
  122. # will be allowed. (This does not include manual or outbound connections)
  123. #inbound_connections = 0
  124. # Manual connections retry limit, 0 for forever looping
  125. #manual_attempt_limit = 0
  126. # Outbound connection timeout (in seconds)
  127. #outbound_connect_timeout = 10
  128. # Exchange versions (handshake) timeout (in seconds)
  129. #channel_handshake_timeout = 4
  130. # Ping-pong exchange execution interval (in seconds)
  131. #channel_heartbeat_interval = 10
  132. # Allow localnet hosts
  133. localnet = false
  134. # Cooling off time for peer discovery when unsuccessful
  135. #outbound_peer_discovery_cooloff_time = 30
  136. # Time between peer discovery attempts
  137. #outbound_peer_discovery_attempt_time = 5
  138. # Mainnet blockchain network configuration
  139. [network_config."mainnet"]
  140. # Path to the blockchain database directory
  141. database = "~/.local/darkfi/darkfid_blockchain_mainnet"
  142. # Finalization threshold, denominated by number of blocks
  143. threshold = 11
  144. # minerd JSON-RPC endpoint
  145. minerd_endpoint = "tcp://127.0.0.1:28467"
  146. # PoW block production target, in seconds
  147. pow_target = 90
  148. # Participate in block production
  149. miner = false
  150. # Wallet address to receive mining rewards.
  151. #recipient = "YOUR_WALLET_ADDRESS_HERE"
  152. # Skip syncing process and start node right away
  153. skip_sync = false
  154. # Optional sync checkpoint height
  155. #checkpoint_height = 0
  156. # Optional sync checkpoint hash
  157. #checkpoint = ""
  158. ## Mainnet P2P network settings
  159. [network_config."mainnet".net]
  160. # P2P accept addresses the instance listens on for inbound connections
  161. # You can also use an IPv6 address
  162. inbound = ["tcp+tls://0.0.0.0:8442"]
  163. # IPv6 version:
  164. #inbound = ["tcp+tls://[::]:8442"]
  165. # Combined:
  166. #inbound = ["tcp+tls://0.0.0.0:8442", "tcp+tls://[::]:8442"]
  167. # P2P external addresses the instance advertises so other peers can
  168. # reach us and connect to us, as long as inbound addrs are configured.
  169. # You can also use an IPv6 address
  170. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442"]
  171. # IPv6 version:
  172. #external_addrs = ["tcp+tls://[ipv6 address here]:8442"]
  173. # Combined:
  174. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442", "tcp+tls://[ipv6 address here]:8442"]
  175. # Peer nodes to manually connect to
  176. #peers = []
  177. # Seed nodes to connect to for peer discovery and/or adversising our
  178. # own external addresses
  179. seeds = ["tcp+tls://lilith0.dark.fi:8442", "tcp+tls://lilith1.dark.fi:8442"]
  180. # Whitelisted network transports for outbound connections
  181. allowed_transports = ["tcp+tls"]
  182. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  183. #transport_mixing = true
  184. # Outbound connection slots number, this many connections will be
  185. # attempted. (This does not include manual connections)
  186. outbound_connections = 8
  187. # Inbound connections slots number, this many active inbound connections
  188. # will be allowed. (This does not include manual or outbound connections)
  189. #inbound_connections = 0
  190. # Manual connections retry limit, 0 for forever looping
  191. #manual_attempt_limit = 0
  192. # Outbound connection timeout (in seconds)
  193. #outbound_connect_timeout = 10
  194. # Exchange versions (handshake) timeout (in seconds)
  195. #channel_handshake_timeout = 4
  196. # Ping-pong exchange execution interval (in seconds)
  197. #channel_heartbeat_interval = 10
  198. # Allow localnet hosts
  199. localnet = false
  200. # Cooling off time for peer discovery when unsuccessful
  201. #outbound_peer_discovery_cooloff_time = 30
  202. # Time between peer discovery attempts
  203. #outbound_peer_discovery_attempt_time = 5