darkfid_config.toml 8.6 KB

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