darkfid_config.toml 14 KB

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