darkfid_config.toml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  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 sync P2P network settings
  33. [network_config."localnet".sync_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. ## Localnet miners P2P network settings
  71. [network_config."localnet".miners_net]
  72. # P2P accept addresses the instance listens on for inbound connections
  73. #inbound = ["tcp+tls://0.0.0.0:8241"]
  74. # P2P external addresses the instance advertises so other peers can
  75. # reach us and connect to us, as long as inbound addrs are configured.
  76. #external_addrs = []
  77. # Peer nodes to manually connect to
  78. #peers = []
  79. # Seed nodes to connect to for peer discovery and/or adversising our
  80. # own external addresses
  81. #seeds = []
  82. # Whitelisted network transports for outbound connections
  83. #allowed_transports = ["tcp+tls"]
  84. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  85. #transport_mixing = true
  86. # Outbound connection slots number, this many connections will be
  87. # attempted. (This does not include manual connections)
  88. #outbound_connections = 8
  89. # Manual connections retry limit, 0 for forever looping
  90. #manual_attempt_limit = 0
  91. # Outbound connection timeout (in seconds)
  92. #outbound_connect_timeout = 10
  93. # Exchange versions (handshake) timeout (in seconds)
  94. #channel_handshake_timeout = 4
  95. # Ping-pong exchange execution interval (in seconds)
  96. #channel_heartbeat_interval = 10
  97. # Allow localnet hosts
  98. localnet = true
  99. # Delete a peer from hosts if they've been quarantined N times
  100. #hosts_quarantine_limit = 50
  101. # Cooling off time for peer discovery when unsuccessful
  102. #outbound_peer_discovery_cooloff_time = 30
  103. # Time between peer discovery attempts
  104. #outbound_peer_discovery_attempt_time = 5
  105. # Testnet blockchain network configuration
  106. [network_config."testnet"]
  107. # Path to the blockchain database directory
  108. database = "~/.local/darkfi/darkfid_blockchain_testnet"
  109. # Finalization threshold, denominated by number of blocks
  110. threshold = 6
  111. # minerd JSON-RPC endpoint
  112. minerd_endpoint = "tcp://127.0.0.1:28467"
  113. # PoW block production target, in seconds
  114. pow_target = 90
  115. # Participate in block production
  116. miner = false
  117. # Wallet address to receive mining rewards.
  118. #recipient = "YOUR_WALLET_ADDRESS_HERE"
  119. # Skip syncing process and start node right away
  120. skip_sync = false
  121. ## Testnet sync P2P network settings
  122. [network_config."testnet".sync_net]
  123. # P2P accept addresses the instance listens on for inbound connections
  124. # You can also use an IPv6 address
  125. inbound = ["tcp+tls://0.0.0.0:8342"]
  126. # IPv6 version:
  127. #inbound = ["tcp+tls://[::]:8342"]
  128. # Combined:
  129. #inbound = ["tcp+tls://0.0.0.0:8342", "tcp+tls://[::]:8342"]
  130. # P2P external addresses the instance advertises so other peers can
  131. # reach us and connect to us, as long as inbound addrs are configured.
  132. # You can also use an IPv6 address
  133. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8342"]
  134. # IPv6 version:
  135. #external_addrs = ["tcp+tls://[ipv6 address here]:8342"]
  136. # Combined:
  137. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8342", "tcp+tls://[ipv6 address here]:8342"]
  138. # Peer nodes to manually connect to
  139. #peers = []
  140. # Seed nodes to connect to for peer discovery and/or adversising our
  141. # own external addresses
  142. seeds = ["tcp+tls://lilith0.dark.fi:8342", "tcp+tls://lilith1.dark.fi:8342"]
  143. # Whitelisted network transports for outbound connections
  144. allowed_transports = ["tcp+tls"]
  145. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  146. #transport_mixing = true
  147. # Outbound connection slots number, this many connections will be
  148. # attempted. (This does not include manual connections)
  149. outbound_connections = 8
  150. # Inbound connections slots number, this many active inbound connections
  151. # will be allowed. (This does not include manual or outbound connections)
  152. #inbound_connections = 0
  153. # Manual connections retry limit, 0 for forever looping
  154. #manual_attempt_limit = 0
  155. # Outbound connection timeout (in seconds)
  156. #outbound_connect_timeout = 10
  157. # Exchange versions (handshake) timeout (in seconds)
  158. #channel_handshake_timeout = 4
  159. # Ping-pong exchange execution interval (in seconds)
  160. #channel_heartbeat_interval = 10
  161. # Allow localnet hosts
  162. localnet = false
  163. # Delete a peer from hosts if they've been quarantined N times
  164. #hosts_quarantine_limit = 50
  165. # Cooling off time for peer discovery when unsuccessful
  166. #outbound_peer_discovery_cooloff_time = 30
  167. # Time between peer discovery attempts
  168. #outbound_peer_discovery_attempt_time = 5
  169. ## Testnet miners P2P network settings
  170. [network_config."testnet".miners_net]
  171. # P2P accept addresses the instance listens on for inbound connections
  172. # You can also use an IPv6 address
  173. inbound = ["tcp+tls://0.0.0.0:8341"]
  174. # IPv6 version:
  175. #inbound = ["tcp+tls://[::]:8341"]
  176. # Combined:
  177. #inbound = ["tcp+tls://0.0.0.0:8341", "tcp+tls://[::]:8341"]
  178. # P2P external addresses the instance advertises so other peers can
  179. # reach us and connect to us, as long as inbound addrs are configured.
  180. # You can also use an IPv6 address
  181. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8341"]
  182. # IPv6 version:
  183. #external_addrs = ["tcp+tls://[ipv6 address here]:8341"]
  184. # Combined:
  185. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8341", "tcp+tls://[ipv6 address here]:8341"]
  186. # Peer nodes to manually connect to
  187. #peers = []
  188. # Seed nodes to connect to for peer discovery and/or adversising our
  189. # own external addresses
  190. seeds = ["tcp+tls://lilith0.dark.fi:8341", "tcp+tls://lilith1.dark.fi:8341"]
  191. # Whitelisted network transports for outbound connections
  192. allowed_transports = ["tcp+tls"]
  193. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  194. #transport_mixing = true
  195. # Outbound connection slots number, this many connections will be
  196. # attempted. (This does not include manual connections)
  197. #outbound_connections = 8
  198. # Manual connections retry limit, 0 for forever looping
  199. #manual_attempt_limit = 0
  200. # Outbound connection timeout (in seconds)
  201. #outbound_connect_timeout = 10
  202. # Exchange versions (handshake) timeout (in seconds)
  203. #channel_handshake_timeout = 4
  204. # Ping-pong exchange execution interval (in seconds)
  205. #channel_heartbeat_interval = 10
  206. # Allow localnet hosts
  207. localnet = false
  208. # Delete a peer from hosts if they've been quarantined N times
  209. #hosts_quarantine_limit = 50
  210. # Cooling off time for peer discovery when unsuccessful
  211. #outbound_peer_discovery_cooloff_time = 30
  212. # Time between peer discovery attempts
  213. #outbound_peer_discovery_attempt_time = 5
  214. # Mainnet blockchain network configuration
  215. [network_config."mainnet"]
  216. # Path to the blockchain database directory
  217. database = "~/.local/darkfi/darkfid_blockchain_mainnet"
  218. # Finalization threshold, denominated by number of blocks
  219. threshold = 11
  220. # minerd JSON-RPC endpoint
  221. minerd_endpoint = "tcp://127.0.0.1:28467"
  222. # PoW block production target, in seconds
  223. pow_target = 90
  224. # Participate in block production
  225. miner = false
  226. # Wallet address to receive mining rewards.
  227. #recipient = "YOUR_WALLET_ADDRESS_HERE"
  228. # Skip syncing process and start node right away
  229. skip_sync = false
  230. ## Mainnet sync P2P network settings
  231. [network_config."mainnet".sync_net]
  232. # P2P accept addresses the instance listens on for inbound connections
  233. # You can also use an IPv6 address
  234. inbound = ["tcp+tls://0.0.0.0:8442"]
  235. # IPv6 version:
  236. #inbound = ["tcp+tls://[::]:8442"]
  237. # Combined:
  238. #inbound = ["tcp+tls://0.0.0.0:8442", "tcp+tls://[::]:8442"]
  239. # P2P external addresses the instance advertises so other peers can
  240. # reach us and connect to us, as long as inbound addrs are configured.
  241. # You can also use an IPv6 address
  242. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442"]
  243. # IPv6 version:
  244. #external_addrs = ["tcp+tls://[ipv6 address here]:8442"]
  245. # Combined:
  246. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442", "tcp+tls://[ipv6 address here]:8442"]
  247. # Peer nodes to manually connect to
  248. #peers = []
  249. # Seed nodes to connect to for peer discovery and/or adversising our
  250. # own external addresses
  251. seeds = ["tcp+tls://lilith0.dark.fi:8442", "tcp+tls://lilith1.dark.fi:8442"]
  252. # Whitelisted network transports for outbound connections
  253. allowed_transports = ["tcp+tls"]
  254. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  255. #transport_mixing = true
  256. # Outbound connection slots number, this many connections will be
  257. # attempted. (This does not include manual connections)
  258. outbound_connections = 8
  259. # Inbound connections slots number, this many active inbound connections
  260. # will be allowed. (This does not include manual or outbound connections)
  261. #inbound_connections = 0
  262. # Manual connections retry limit, 0 for forever looping
  263. #manual_attempt_limit = 0
  264. # Outbound connection timeout (in seconds)
  265. #outbound_connect_timeout = 10
  266. # Exchange versions (handshake) timeout (in seconds)
  267. #channel_handshake_timeout = 4
  268. # Ping-pong exchange execution interval (in seconds)
  269. #channel_heartbeat_interval = 10
  270. # Allow localnet hosts
  271. localnet = false
  272. # Delete a peer from hosts if they've been quarantined N times
  273. #hosts_quarantine_limit = 50
  274. # Cooling off time for peer discovery when unsuccessful
  275. #outbound_peer_discovery_cooloff_time = 30
  276. # Time between peer discovery attempts
  277. #outbound_peer_discovery_attempt_time = 5
  278. ## Mainnet miners P2P network settings
  279. [network_config."mainnet".miners_net]
  280. # P2P accept addresses the instance listens on for inbound connections
  281. # You can also use an IPv6 address
  282. inbound = ["tcp+tls://0.0.0.0:8441"]
  283. # IPv6 version:
  284. #inbound = ["tcp+tls://[::]:8441"]
  285. # Combined:
  286. #inbound = ["tcp+tls://0.0.0.0:8441", "tcp+tls://[::]:8441"]
  287. # P2P external addresses the instance advertises so other peers can
  288. # reach us and connect to us, as long as inbound addrs are configured.
  289. # You can also use an IPv6 address
  290. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8441"]
  291. # IPv6 version:
  292. #external_addrs = ["tcp+tls://[ipv6 address here]:8441"]
  293. # Combined:
  294. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8441", "tcp+tls://[ipv6 address here]:8441"]
  295. # Peer nodes to manually connect to
  296. #peers = []
  297. # Seed nodes to connect to for peer discovery and/or adversising our
  298. # own external addresses
  299. seeds = ["tcp+tls://lilith0.dark.fi:8441", "tcp+tls://lilith1.dark.fi:8441"]
  300. # Whitelisted network transports for outbound connections
  301. allowed_transports = ["tcp+tls"]
  302. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  303. #transport_mixing = true
  304. # Outbound connection slots number, this many connections will be
  305. # attempted. (This does not include manual connections)
  306. #outbound_connections = 8
  307. # Manual connections retry limit, 0 for forever looping
  308. #manual_attempt_limit = 0
  309. # Outbound connection timeout (in seconds)
  310. #outbound_connect_timeout = 10
  311. # Exchange versions (handshake) timeout (in seconds)
  312. #channel_handshake_timeout = 4
  313. # Ping-pong exchange execution interval (in seconds)
  314. #channel_heartbeat_interval = 10
  315. # Allow localnet hosts
  316. localnet = false
  317. # Delete a peer from hosts if they've been quarantined N times
  318. #hosts_quarantine_limit = 50
  319. # Cooling off time for peer discovery when unsuccessful
  320. #outbound_peer_discovery_cooloff_time = 30
  321. # Time between peer discovery attempts
  322. #outbound_peer_discovery_attempt_time = 5