darkfid_config.toml 8.2 KB

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