darkfid_config.toml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  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. ## =====================
  11. ## TESTNET CONFIGURATION
  12. ## =====================
  13. # Testnet blockchain network configuration
  14. [network_config."testnet"]
  15. # Path to the blockchain database directory
  16. database = "~/.local/share/darkfi/darkfid/testnet"
  17. # Confirmation threshold, denominated by number of blocks
  18. threshold = 6
  19. # Max in-memory forks to maintain
  20. max_forks = 32
  21. # PoW block production target, in seconds
  22. pow_target = 120
  23. # Skip syncing process and start node right away
  24. skip_sync = false
  25. # Disable transaction's fee verification, used for testing
  26. skip_fees = false
  27. # Optional sync checkpoint height
  28. #checkpoint_height = 0
  29. # Optional sync checkpoint hash
  30. #checkpoint = ""
  31. # Garbage collection task transactions batch size
  32. txs_batch_size = 50
  33. ## Testnet JSON-RPC settings
  34. [network_config."testnet".rpc]
  35. # JSON-RPC listen URL
  36. rpc_listen = "tcp://127.0.0.1:18345"
  37. # Disabled RPC methods
  38. #rpc_disabled_methods = []
  39. ## Testnet management JSON-RPC settings
  40. [network_config."testnet".management_rpc]
  41. # JSON-RPC listen URL
  42. rpc_listen = "tcp://127.0.0.1:18346"
  43. # Disabled RPC methods
  44. #rpc_disabled_methods = []
  45. ## Testnet JSON-RPC settings for stratum mining requests (optional)
  46. #[network_config."testnet".stratum_rpc]
  47. # JSON-RPC listen URL (stratum mining)
  48. #rpc_listen = "tcp://127.0.0.1:18347"
  49. # Disabled RPC methods (stratum mining)
  50. #rpc_disabled_methods = []
  51. ## Testnet JSON-RPC settings for p2pool merge mining requests (optional)
  52. #[network_config."testnet".mm_rpc]
  53. # JSON-RPC listen URL (merge mining)
  54. #rpc_listen = "http+tcp://127.0.0.1:18348"
  55. # Disabled RPC methods (merge mining)
  56. #rpc_disabled_methods = []
  57. ## Testnet P2P network settings
  58. [network_config."testnet".net]
  59. # Magic Bytes to distinguish the p2p network
  60. magic_bytes = [163, 139, 113, 101]
  61. # Path to the P2P datastore
  62. p2p_datastore = "~/.local/share/darkfi/darkfid/testnet"
  63. # Path to a configured hostlist for saving known peers
  64. hostlist = "~/.local/share/darkfi/darkfid/testnet/p2p_hostlist.tsv"
  65. # Outbound connection slots number, this many connections will be
  66. # attempted. (This does not include manual connections)
  67. outbound_connections = 8
  68. # Inbound connections slots number, this many active inbound connections
  69. # will be allowed. (This does not include manual or outbound connections)
  70. #inbound_connections = 0
  71. # Manual connections retry limit, 0 for forever looping
  72. #manual_attempt_limit = 0
  73. # Allow localnet hosts
  74. localnet = false
  75. # Cooling off time for peer discovery when unsuccessful
  76. #outbound_peer_discovery_cooloff_time = 30
  77. # Time between peer discovery attempts
  78. #outbound_peer_discovery_attempt_time = 5
  79. # Whitelisted network transports for outbound connections
  80. active_profiles = ["tor"]
  81. # Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
  82. # if tcp is added to mixed_profiles and tor is added to active_profiles)
  83. #mixed_profiles = []
  84. # Tor Socks5 proxy
  85. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  86. # Nym Socks5 proxy
  87. #nym_socks5_proxy = "socks5://127.0.0.1:1080"
  88. # I2p Socks5 proxy
  89. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  90. [network_config."testnet".net.profiles."tcp+tls"]
  91. # Seed nodes to connect to for peer discovery and/or adversising our
  92. # own external addresses
  93. seeds = ["tcp+tls://lilith0.dark.fi:18340", "tcp+tls://lilith1.dark.fi:18340"]
  94. # Peer nodes to manually connect to
  95. #peers = []
  96. # P2P accept addresses the instance listens on for inbound connections
  97. # You can also use an IPv6 address
  98. #inbound = ["tcp+tls://0.0.0.0:18340"]
  99. # IPv6 version:
  100. #inbound = ["tcp+tls://[::]:18340"]
  101. # Combined:
  102. #inbound = ["tcp+tls://0.0.0.0:18340", "tcp+tls://[::]:18340"]
  103. # P2P external addresses the instance advertises so other peers can
  104. # reach us and connect to us, as long as inbound addrs are configured.
  105. # You can also use an IPv6 address
  106. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:18340"]
  107. # IPv6 version:
  108. #external_addrs = ["tcp+tls://[ipv6 address here]:18340"]
  109. # Combined:
  110. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:18340", "tcp+tls://[ipv6 address here]:18340"]
  111. [network_config."testnet".net.profiles."tor"]
  112. # Seed nodes to connect to for peer discovery and/or adversising our
  113. # own external addresses
  114. seeds = [
  115. "tor://g7fxelebievvpr27w7gt24lflptpw3jeeuvafovgliq5utdst6xyruyd.onion:18341",
  116. "tor://yvklzjnfmwxhyodhrkpomawjcdvcaushsj6torjz2gyd7e25f3gfunyd.onion:18341",
  117. ]
  118. # Peer nodes to manually connect to
  119. #peers = []
  120. # P2P accept addresses the instance listens on for inbound connections
  121. #inbound = ["tor://127.0.0.1:18341"]
  122. [network_config."testnet".net.profiles."i2p"]
  123. # Seed nodes to connect to for peer discovery and/or adversising our
  124. # own external addresses
  125. #seeds = []
  126. # Peer nodes to manually connect to
  127. #peers = []
  128. # P2P accept addresses the instance listens on for inbound connections
  129. #inbound = ["tcp://127.0.0.1:18342"]
  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. #external_addrs = ["i2p://youraddress.b32.i2p:18342"]
  133. [network_config."testnet".net.profiles."socks5"]
  134. # Seed nodes to connect to for peer discovery and/or adversising our
  135. # own external addresses
  136. seeds = [
  137. "socks5://127.0.0.1:9050/g7fxelebievvpr27w7gt24lflptpw3jeeuvafovgliq5utdst6xyruyd.onion:18341",
  138. "socks5://127.0.0.1:9050/yvklzjnfmwxhyodhrkpomawjcdvcaushsj6torjz2gyd7e25f3gfunyd.onion:18341",
  139. ]
  140. # Peer nodes to manually connect to
  141. #peers = []
  142. [network_config."testnet".net.profiles."socks5+tls"]
  143. # Seed nodes to connect to for peer discovery and/or adversising our
  144. # own external addresses
  145. seeds = [
  146. #"socks5+tls://127.0.0.1:9050/lilith0.dark.fi:18340",
  147. #"socks5+tls://127.0.0.1:1080/lilith1.dark.fi:18340"
  148. ]
  149. # Peer nodes to manually connect to
  150. #peers = []
  151. [network_config."testnet".net.profiles."tor+tls"]
  152. # Seed nodes to connect to for peer discovery and/or adversising our
  153. # own external addresses
  154. seeds = [
  155. "tor+tls://lilith0.dark.fi:18340",
  156. "tor+tls://lilith1.dark.fi:18340"
  157. ]
  158. # Peer nodes to manually connect to
  159. #peers = []
  160. ## =====================
  161. ## MAINNET CONFIGURATION
  162. ## =====================
  163. # Mainnet blockchain network configuration
  164. [network_config."mainnet"]
  165. # Path to the blockchain database directory
  166. database = "~/.local/share/darkfi/darkfid/mainnet"
  167. # Confirmation threshold, denominated by number of blocks
  168. threshold = 11
  169. # Max in-memory forks to maintain
  170. max_forks = 32
  171. # PoW block production target, in seconds
  172. pow_target = 120
  173. # Skip syncing process and start node right away
  174. skip_sync = false
  175. # Disable transaction's fee verification, used for testing
  176. skip_fees = false
  177. # Optional sync checkpoint height
  178. #checkpoint_height = 0
  179. # Optional sync checkpoint hash
  180. #checkpoint = ""
  181. # Garbage collection task transactions batch size
  182. txs_batch_size = 50
  183. ## Mainnet JSON-RPC settings
  184. [network_config."mainnet".rpc]
  185. # JSON-RPC listen URL
  186. rpc_listen = "tcp://127.0.0.1:8345"
  187. # Disabled RPC methods
  188. #rpc_disabled_methods = []
  189. ## Mainnet management JSON-RPC settings
  190. [network_config."mainnet".management_rpc]
  191. # JSON-RPC listen URL
  192. rpc_listen = "tcp://127.0.0.1:8346"
  193. # Disabled RPC methods
  194. #rpc_disabled_methods = []
  195. ## Mainnet JSON-RPC settings for stratum mining requests (optional)
  196. #[network_config."mainnet".stratum_rpc]
  197. # JSON-RPC listen URL (stratum mining)
  198. #rpc_listen = "tcp://127.0.0.1:8347"
  199. # Disabled RPC methods (stratum mining)
  200. #rpc_disabled_methods = []
  201. ## Mainnet JSON-RPC settings for p2pool merge mining requests (optional)
  202. #[network_config."mainnet".mm_rpc]
  203. # JSON-RPC listen URL (merge mining)
  204. #rpc_listen = "http+tcp://127.0.0.1:8348"
  205. # Disabled RPC methods (merge mining)
  206. #rpc_disabled_methods = []
  207. ## Mainnet P2P network settings
  208. [network_config."mainnet".net]
  209. # Magic Bytes to distinguish the p2p network
  210. magic_bytes = [101, 79, 61, 43]
  211. # Path to the P2P datastore
  212. p2p_datastore = "~/.local/share/darkfi/darkfid/mainnet"
  213. # Path to a configured hostlist for saving known peers
  214. hostlist = "~/.local/share/darkfi/darkfid/mainnet/p2p_hostlist.tsv"
  215. # Outbound connection slots number, this many connections will be
  216. # attempted. (This does not include manual connections)
  217. outbound_connections = 8
  218. # Inbound connections slots number, this many active inbound connections
  219. # will be allowed. (This does not include manual or outbound connections)
  220. #inbound_connections = 0
  221. # Manual connections retry limit, 0 for forever looping
  222. #manual_attempt_limit = 0
  223. # Allow localnet hosts
  224. localnet = false
  225. # Cooling off time for peer discovery when unsuccessful
  226. #outbound_peer_discovery_cooloff_time = 30
  227. # Time between peer discovery attempts
  228. #outbound_peer_discovery_attempt_time = 5
  229. # Nodes to avoid interacting with for the duration of the program, in the
  230. # format ["host", ["scheme", "scheme"], [port, port]].
  231. # If scheme is left empty it will default to "tcp+tls".
  232. # If ports are left empty all ports from this peer will be blocked.
  233. #blacklist = [["example.com", ["tcp"], [8551, 23331]]]
  234. # Whitelisted network transports for outbound connections
  235. active_profiles = ["tor"]
  236. # Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
  237. # if tcp is added to mixed_profiles and tor is added to active_profiles)
  238. #mixed_profiles = []
  239. # Tor Socks5 proxy
  240. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  241. # Nym Socks5 proxy
  242. #nym_socks5_proxy = "socks5://127.0.0.1:1080"
  243. # I2p Socks5 proxy
  244. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  245. [network_config."mainnet".net.profiles."tcp+tls"]
  246. # Seed nodes to connect to for peer discovery and/or adversising our
  247. # own external addresses
  248. seeds = ["tcp+tls://lilith0.dark.fi:8340", "tcp+tls://lilith1.dark.fi:8340"]
  249. # Peer nodes to manually connect to
  250. #peers = []
  251. # P2P accept addresses the instance listens on for inbound connections
  252. # You can also use an IPv6 address
  253. #inbound = ["tcp+tls://0.0.0.0:8340"]
  254. # IPv6 version:
  255. #inbound = ["tcp+tls://[::]:8340"]
  256. # Combined:
  257. #inbound = ["tcp+tls://0.0.0.0:8340", "tcp+tls://[::]:8340"]
  258. # P2P external addresses the instance advertises so other peers can
  259. # reach us and connect to us, as long as inbound addrs are configured.
  260. # You can also use an IPv6 address
  261. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8340"]
  262. # IPv6 version:
  263. #external_addrs = ["tcp+tls://[ipv6 address here]:8340"]
  264. # Combined:
  265. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8340", "tcp+tls://[ipv6 address here]:8340"]
  266. [network_config."mainnet".net.profiles."tor"]
  267. # Seed nodes to connect to for peer discovery and/or adversising our
  268. # own external addresses
  269. #seeds = []
  270. # Peer nodes to manually connect to
  271. #peers = []
  272. # P2P accept addresses the instance listens on for inbound connections
  273. #inbound = ["tor://127.0.0.1:8341"]
  274. [network_config."mainnet".net.profiles."i2p"]
  275. # Seed nodes to connect to for peer discovery and/or adversising our
  276. # own external addresses
  277. #seeds = []
  278. # Peer nodes to manually connect to
  279. #peers = []
  280. # P2P accept addresses the instance listens on for inbound connections
  281. #inbound = ["tcp://127.0.0.1:8342"]
  282. # P2P external addresses the instance advertises so other peers can
  283. # reach us and connect to us, as long as inbound addrs are configured.
  284. #external_addrs = ["i2p://youraddress.b32.i2p:8342"]
  285. [network_config."mainnet".net.profiles."socks5"]
  286. # Seed nodes to connect to for peer discovery and/or adversising our
  287. # own external addresses
  288. #seeds = []
  289. # Peer nodes to manually connect to
  290. #peers = []
  291. [network_config."mainnet".net.profiles."socks5+tls"]
  292. # Seed nodes to connect to for peer discovery and/or adversising our
  293. # own external addresses
  294. #seeds = []
  295. # Peer nodes to manually connect to
  296. #peers = []
  297. [network_config."mainnet".net.profiles."tor+tls"]
  298. # Seed nodes to connect to for peer discovery and/or adversising our
  299. # own external addresses
  300. #seeds = []
  301. # Peer nodes to manually connect to
  302. #peers = []
  303. ## ======================
  304. ## LOCALNET CONFIGURATION
  305. ## ======================
  306. # Localnet blockchain network configuration
  307. [network_config."localnet"]
  308. # Path to the blockchain database directory
  309. database = "~/.local/share/darkfi/darkfid/localnet"
  310. # Confirmation threshold, denominated by number of blocks
  311. threshold = 3
  312. # Max in-memory forks to maintain
  313. max_forks = 8
  314. # PoW block production target, in seconds
  315. pow_target = 10
  316. # Optional fixed PoW difficulty, used for testing
  317. pow_fixed_difficulty = 1
  318. # Skip syncing process and start node right away
  319. skip_sync = true
  320. # Disable transaction's fee verification, used for testing
  321. skip_fees = false
  322. # Optional sync checkpoint height
  323. #checkpoint_height = 0
  324. # Optional sync checkpoint hash
  325. #checkpoint = ""
  326. # Garbage collection task transactions batch size
  327. txs_batch_size = 50
  328. ## Localnet JSON-RPC settings
  329. [network_config."localnet".rpc]
  330. # JSON-RPC listen URL
  331. rpc_listen = "tcp://127.0.0.1:28345"
  332. # Disabled RPC methods
  333. #rpc_disabled_methods = []
  334. ## Localnet management JSON-RPC settings
  335. [network_config."localnet".management_rpc]
  336. # JSON-RPC listen URL
  337. rpc_listen = "tcp://127.0.0.1:28346"
  338. # Disabled RPC methods
  339. #rpc_disabled_methods = []
  340. ## Localnet JSON-RPC settings for stratum mining requests (optional)
  341. #[network_config."localnet".stratum_rpc]
  342. # JSON-RPC listen URL (stratum mining)
  343. #rpc_listen = "tcp://127.0.0.1:28347"
  344. # Disabled RPC methods (stratum mining)
  345. #rpc_disabled_methods = []
  346. ## Localnet JSON-RPC settings for p2pool merge mining requests (optional)
  347. #[network_config."localnet".mm_rpc]
  348. # JSON-RPC listen URL (merge mining)
  349. #rpc_listen = "http+tcp://127.0.0.1:28348"
  350. # Disabled RPC methods (merge mining)
  351. #rpc_disabled_methods = []
  352. ## Localnet P2P network settings
  353. [network_config."localnet".net]
  354. # Magic Bytes to distinguish the p2p network
  355. magic_bytes = [241, 227, 197, 179]
  356. # Path to the P2P datastore
  357. p2p_datastore = "~/.local/share/darkfi/darkfid/localnet"
  358. # Path to a configured hostlist for saving known peers
  359. hostlist = "~/.local/share/darkfi/darkfid/localnet/p2p_hostlist.tsv"
  360. # Outbound connection slots number, this many connections will be
  361. # attempted. (This does not include manual connections)
  362. #outbound_connections = 8
  363. # Inbound connections slots number, this many active inbound connections
  364. # will be allowed. (This does not include manual or outbound connections)
  365. #inbound_connections = 8
  366. ## White connection percent
  367. # gold_connect_count = 2
  368. ## White connection percent
  369. # white_connect_percent = 70
  370. # Manual connections retry limit, 0 for forever looping
  371. #manual_attempt_limit = 0
  372. # Allow localnet hosts
  373. localnet = true
  374. # Cooling off time for peer discovery when unsuccessful
  375. #outbound_peer_discovery_cooloff_time = 30
  376. # Time between peer discovery attempts
  377. #outbound_peer_discovery_attempt_time = 5
  378. # Whitelisted network transports for outbound connections
  379. #active_profiles = ["tcp+tls"]
  380. # Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
  381. # if tcp is added to mixed_profiles and tor is added to active_profiles)
  382. #mixed_profiles = []
  383. # Tor Socks5 proxy
  384. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  385. # Nym Socks5 proxy
  386. #nym_socks5_proxy = "socks5://127.0.0.1:1080"
  387. # I2p Socks5 proxy
  388. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  389. [net.profiles."tcp+tls"]
  390. # P2P accept addresses the instance listens on for inbound connections
  391. #inbound = ["tcp+tls://0.0.0.0:28340"]
  392. # P2P external addresses the instance advertises so other peers can
  393. # reach us and connect to us, as long as inbound addrs are configured.
  394. #external_addrs = []
  395. # Peer nodes to manually connect to
  396. #peers = []
  397. # Seed nodes to connect to for peer discovery and/or adversising our
  398. # own external addresses
  399. #seeds = []
  400. [net.profiles."tcp"]
  401. # P2P accept addresses the instance listens on for inbound connections
  402. #inbound = ["tcp://0.0.0.0:28340"]
  403. # P2P external addresses the instance advertises so other peers can
  404. # reach us and connect to us, as long as inbound addrs are configured.
  405. #external_addrs = []
  406. # Peer nodes to manually connect to
  407. #peers = []
  408. # Seed nodes to connect to for peer discovery and/or adversising our
  409. # own external addresses
  410. #seeds = []