darkfid_config.toml 16 KB

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