darkfid_config.toml 14 KB

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