darkfid_config.toml 9.9 KB

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