darkfid_config.toml 14 KB

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