darkfid_config.toml 15 KB

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