darkfid_config.toml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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. ## Localnet P2P network settings
  33. [network_config."localnet".net]
  34. # P2P accept addresses the instance listens on for inbound connections
  35. inbound = ["tcp+tls://0.0.0.0:8242"]
  36. # P2P external addresses the instance advertises so other peers can
  37. # reach us and connect to us, as long as inbound addrs are configured.
  38. #external_addrs = []
  39. # Peer nodes to manually connect to
  40. #peers = []
  41. # Seed nodes to connect to for peer discovery and/or adversising our
  42. # own external addresses
  43. #seeds = []
  44. # Whitelisted network transports for outbound connections
  45. #allowed_transports = ["tcp+tls"]
  46. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  47. #transport_mixing = true
  48. # Outbound connection slots number, this many connections will be
  49. # attempted. (This does not include manual connections)
  50. #outbound_connections = 8
  51. # Inbound connections slots number, this many active inbound connections
  52. # will be allowed. (This does not include manual or outbound connections)
  53. #inbound_connections = 0
  54. # Manual connections retry limit, 0 for forever looping
  55. #manual_attempt_limit = 0
  56. # Outbound connection timeout (in seconds)
  57. #outbound_connect_timeout = 10
  58. # Exchange versions (handshake) timeout (in seconds)
  59. #channel_handshake_timeout = 4
  60. # Ping-pong exchange execution interval (in seconds)
  61. #channel_heartbeat_interval = 10
  62. # Allow localnet hosts
  63. localnet = true
  64. # Delete a peer from hosts if they've been quarantined N times
  65. #hosts_quarantine_limit = 50
  66. # Cooling off time for peer discovery when unsuccessful
  67. #outbound_peer_discovery_cooloff_time = 30
  68. # Time between peer discovery attempts
  69. #outbound_peer_discovery_attempt_time = 5
  70. # Testnet blockchain network configuration
  71. [network_config."testnet"]
  72. # Path to the blockchain database directory
  73. database = "~/.local/darkfi/darkfid_blockchain_testnet"
  74. # Finalization threshold, denominated by number of blocks
  75. threshold = 6
  76. # minerd JSON-RPC endpoint
  77. minerd_endpoint = "tcp://127.0.0.1:28467"
  78. # PoW block production target, in seconds
  79. pow_target = 90
  80. # Participate in block production
  81. miner = false
  82. # Wallet address to receive mining rewards.
  83. #recipient = "YOUR_WALLET_ADDRESS_HERE"
  84. # Skip syncing process and start node right away
  85. skip_sync = false
  86. ## Testnet P2P network settings
  87. [network_config."testnet".net]
  88. # P2P accept addresses the instance listens on for inbound connections
  89. # You can also use an IPv6 address
  90. inbound = ["tcp+tls://0.0.0.0:8342"]
  91. # IPv6 version:
  92. #inbound = ["tcp+tls://[::]:8342"]
  93. # Combined:
  94. #inbound = ["tcp+tls://0.0.0.0:8342", "tcp+tls://[::]:8342"]
  95. # P2P external addresses the instance advertises so other peers can
  96. # reach us and connect to us, as long as inbound addrs are configured.
  97. # You can also use an IPv6 address
  98. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8342"]
  99. # IPv6 version:
  100. #external_addrs = ["tcp+tls://[ipv6 address here]:8342"]
  101. # Combined:
  102. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8342", "tcp+tls://[ipv6 address here]:8342"]
  103. # Peer nodes to manually connect to
  104. #peers = []
  105. # Seed nodes to connect to for peer discovery and/or adversising our
  106. # own external addresses
  107. seeds = ["tcp+tls://lilith0.dark.fi:8342", "tcp+tls://lilith1.dark.fi:8342"]
  108. # Whitelisted network transports for outbound connections
  109. allowed_transports = ["tcp+tls"]
  110. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  111. #transport_mixing = true
  112. # Outbound connection slots number, this many connections will be
  113. # attempted. (This does not include manual connections)
  114. outbound_connections = 8
  115. # Inbound connections slots number, this many active inbound connections
  116. # will be allowed. (This does not include manual or outbound connections)
  117. #inbound_connections = 0
  118. # Manual connections retry limit, 0 for forever looping
  119. #manual_attempt_limit = 0
  120. # Outbound connection timeout (in seconds)
  121. #outbound_connect_timeout = 10
  122. # Exchange versions (handshake) timeout (in seconds)
  123. #channel_handshake_timeout = 4
  124. # Ping-pong exchange execution interval (in seconds)
  125. #channel_heartbeat_interval = 10
  126. # Allow localnet hosts
  127. localnet = false
  128. # Delete a peer from hosts if they've been quarantined N times
  129. #hosts_quarantine_limit = 50
  130. # Cooling off time for peer discovery when unsuccessful
  131. #outbound_peer_discovery_cooloff_time = 30
  132. # Time between peer discovery attempts
  133. #outbound_peer_discovery_attempt_time = 5
  134. # Mainnet blockchain network configuration
  135. [network_config."mainnet"]
  136. # Path to the blockchain database directory
  137. database = "~/.local/darkfi/darkfid_blockchain_mainnet"
  138. # Finalization threshold, denominated by number of blocks
  139. threshold = 11
  140. # minerd JSON-RPC endpoint
  141. minerd_endpoint = "tcp://127.0.0.1:28467"
  142. # PoW block production target, in seconds
  143. pow_target = 90
  144. # Participate in block production
  145. miner = false
  146. # Wallet address to receive mining rewards.
  147. #recipient = "YOUR_WALLET_ADDRESS_HERE"
  148. # Skip syncing process and start node right away
  149. skip_sync = false
  150. ## Mainnet P2P network settings
  151. [network_config."mainnet".net]
  152. # P2P accept addresses the instance listens on for inbound connections
  153. # You can also use an IPv6 address
  154. inbound = ["tcp+tls://0.0.0.0:8442"]
  155. # IPv6 version:
  156. #inbound = ["tcp+tls://[::]:8442"]
  157. # Combined:
  158. #inbound = ["tcp+tls://0.0.0.0:8442", "tcp+tls://[::]:8442"]
  159. # P2P external addresses the instance advertises so other peers can
  160. # reach us and connect to us, as long as inbound addrs are configured.
  161. # You can also use an IPv6 address
  162. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442"]
  163. # IPv6 version:
  164. #external_addrs = ["tcp+tls://[ipv6 address here]:8442"]
  165. # Combined:
  166. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442", "tcp+tls://[ipv6 address here]:8442"]
  167. # Peer nodes to manually connect to
  168. #peers = []
  169. # Seed nodes to connect to for peer discovery and/or adversising our
  170. # own external addresses
  171. seeds = ["tcp+tls://lilith0.dark.fi:8442", "tcp+tls://lilith1.dark.fi:8442"]
  172. # Whitelisted network transports for outbound connections
  173. allowed_transports = ["tcp+tls"]
  174. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  175. #transport_mixing = true
  176. # Outbound connection slots number, this many connections will be
  177. # attempted. (This does not include manual connections)
  178. outbound_connections = 8
  179. # Inbound connections slots number, this many active inbound connections
  180. # will be allowed. (This does not include manual or outbound connections)
  181. #inbound_connections = 0
  182. # Manual connections retry limit, 0 for forever looping
  183. #manual_attempt_limit = 0
  184. # Outbound connection timeout (in seconds)
  185. #outbound_connect_timeout = 10
  186. # Exchange versions (handshake) timeout (in seconds)
  187. #channel_handshake_timeout = 4
  188. # Ping-pong exchange execution interval (in seconds)
  189. #channel_heartbeat_interval = 10
  190. # Allow localnet hosts
  191. localnet = false
  192. # Delete a peer from hosts if they've been quarantined N times
  193. #hosts_quarantine_limit = 50
  194. # Cooling off time for peer discovery when unsuccessful
  195. #outbound_peer_discovery_cooloff_time = 30
  196. # Time between peer discovery attempts
  197. #outbound_peer_discovery_attempt_time = 5