darkfid_config.toml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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. # Path to the P2P datastore
  49. p2p_datastore = "~/.local/share/darkfi/darkfid/testnet"
  50. # Path to a configured hostlist for saving known peers
  51. hostlist = "~/.local/share/darkfi/darkfid/testnet/p2p_hostlist.tsv"
  52. # P2P accept addresses the instance listens on for inbound connections
  53. # You can also use an IPv6 address
  54. #inbound = ["tcp+tls://0.0.0.0:8342"]
  55. # IPv6 version:
  56. #inbound = ["tcp+tls://[::]:8342"]
  57. # Combined:
  58. #inbound = ["tcp+tls://0.0.0.0:8342", "tcp+tls://[::]:8342"]
  59. # P2P external addresses the instance advertises so other peers can
  60. # reach us and connect to us, as long as inbound addrs are configured.
  61. # You can also use an IPv6 address
  62. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8342"]
  63. # IPv6 version:
  64. #external_addrs = ["tcp+tls://[ipv6 address here]:8342"]
  65. # Combined:
  66. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8342", "tcp+tls://[ipv6 address here]:8342"]
  67. # Peer nodes to manually connect to
  68. #peers = []
  69. # Seed nodes to connect to for peer discovery and/or adversising our
  70. # own external addresses
  71. seeds = ["tcp+tls://lilith0.dark.fi:8342", "tcp+tls://lilith1.dark.fi:8342"]
  72. #seeds = [
  73. # "tor://g7fxelebievvpr27w7gt24lflptpw3jeeuvafovgliq5utdst6xyruyd.onion:8343",
  74. # "tor://yvklzjnfmwxhyodhrkpomawjcdvcaushsj6torjz2gyd7e25f3gfunyd.onion:8343",
  75. #]
  76. # Whitelisted network transports for outbound connections
  77. allowed_transports = ["tcp+tls"]
  78. # Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
  79. # if tcp is added to mixed_transports and tor is added to allowed_transports)
  80. #mixed_transports = []
  81. # Tor Socks5 proxy
  82. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  83. # Nym Socks5 proxy
  84. #nym_socks5_proxy = "socks5://127.0.0.1:1080"
  85. # I2p Socks5 proxy
  86. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  87. # Outbound connection slots number, this many connections will be
  88. # attempted. (This does not include manual connections)
  89. outbound_connections = 8
  90. # Inbound connections slots number, this many active inbound connections
  91. # will be allowed. (This does not include manual or outbound connections)
  92. #inbound_connections = 0
  93. # Manual connections retry limit, 0 for forever looping
  94. #manual_attempt_limit = 0
  95. # Outbound connection timeout (in seconds)
  96. #outbound_connect_timeout = 10
  97. # Exchange versions (handshake) timeout (in seconds)
  98. #channel_handshake_timeout = 4
  99. # Ping-pong exchange execution interval (in seconds)
  100. #channel_heartbeat_interval = 10
  101. # Allow localnet hosts
  102. localnet = false
  103. # Cooling off time for peer discovery when unsuccessful
  104. #outbound_peer_discovery_cooloff_time = 30
  105. # Time between peer discovery attempts
  106. #outbound_peer_discovery_attempt_time = 5
  107. # Mainnet blockchain network configuration
  108. [network_config."mainnet"]
  109. # Path to the blockchain database directory
  110. database = "~/.local/share/darkfi/darkfid/mainnet"
  111. # Confirmation threshold, denominated by number of blocks
  112. threshold = 11
  113. # PoW block production target, in seconds
  114. pow_target = 120
  115. # Skip syncing process and start node right away
  116. skip_sync = false
  117. # Disable transaction's fee verification, used for testing
  118. skip_fees = false
  119. # Optional sync checkpoint height
  120. #checkpoint_height = 0
  121. # Optional sync checkpoint hash
  122. #checkpoint = ""
  123. # Garbage collection task transactions batch size
  124. txs_batch_size = 50
  125. ## Mainnet JSON-RPC settings
  126. [network_config."mainnet".rpc]
  127. # JSON-RPC listen URL
  128. rpc_listen = "tcp://127.0.0.1:8440"
  129. # Disabled RPC methods
  130. rpc_disabled_methods = ["p2p.get_info"]
  131. ## Mainnet JSON-RPC settings for stratum mining requests (optional)
  132. #[network_config."mainnet".stratum_rpc]
  133. # JSON-RPC listen URL (stratum mining)
  134. #rpc_listen = "tcp://127.0.0.1:8441"
  135. # Disabled RPC methods (stratum mining)
  136. #rpc_disabled_methods = []
  137. ## Mainnet JSON-RPC settings for p2pool merge mining requests (optional)
  138. #[network_config."mainnet".mm_rpc]
  139. # JSON-RPC listen URL (merge mining)
  140. #rpc_listen = "http+tcp://127.0.0.1:8441"
  141. # Disabled RPC methods (merge mining)
  142. #rpc_disabled_methods = []
  143. ## Mainnet P2P network settings
  144. [network_config."mainnet".net]
  145. # Path to the P2P datastore
  146. p2p_datastore = "~/.local/share/darkfi/darkfid/mainnet"
  147. # Path to a configured hostlist for saving known peers
  148. hostlist = "~/.local/share/darkfi/darkfid/mainnet/p2p_hostlist.tsv"
  149. # P2P accept addresses the instance listens on for inbound connections
  150. # You can also use an IPv6 address
  151. #inbound = ["tcp+tls://0.0.0.0:8442"]
  152. # IPv6 version:
  153. #inbound = ["tcp+tls://[::]:8442"]
  154. # Combined:
  155. #inbound = ["tcp+tls://0.0.0.0:8442", "tcp+tls://[::]:8442"]
  156. # P2P external addresses the instance advertises so other peers can
  157. # reach us and connect to us, as long as inbound addrs are configured.
  158. # You can also use an IPv6 address
  159. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442"]
  160. # IPv6 version:
  161. #external_addrs = ["tcp+tls://[ipv6 address here]:8442"]
  162. # Combined:
  163. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442", "tcp+tls://[ipv6 address here]:8442"]
  164. # Peer nodes to manually connect to
  165. #peers = []
  166. # Seed nodes to connect to for peer discovery and/or adversising our
  167. # own external addresses
  168. seeds = ["tcp+tls://lilith0.dark.fi:8442", "tcp+tls://lilith1.dark.fi:8442"]
  169. # Whitelisted network transports for outbound connections
  170. allowed_transports = ["tcp+tls"]
  171. # Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
  172. # if tcp is added to mixed_transports and tor is added to allowed_transports)
  173. #mixed_transports = []
  174. # Tor Socks5 proxy
  175. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  176. # Nym Socks5 proxy
  177. #nym_socks5_proxy = "socks5://127.0.0.1:1080"
  178. # I2p Socks5 proxy
  179. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  180. # Outbound connection slots number, this many connections will be
  181. # attempted. (This does not include manual connections)
  182. outbound_connections = 8
  183. # Inbound connections slots number, this many active inbound connections
  184. # will be allowed. (This does not include manual or outbound connections)
  185. #inbound_connections = 0
  186. # Manual connections retry limit, 0 for forever looping
  187. #manual_attempt_limit = 0
  188. # Outbound connection timeout (in seconds)
  189. #outbound_connect_timeout = 10
  190. # Exchange versions (handshake) timeout (in seconds)
  191. #channel_handshake_timeout = 4
  192. # Ping-pong exchange execution interval (in seconds)
  193. #channel_heartbeat_interval = 10
  194. # Allow localnet hosts
  195. localnet = false
  196. # Cooling off time for peer discovery when unsuccessful
  197. #outbound_peer_discovery_cooloff_time = 30
  198. # Time between peer discovery attempts
  199. #outbound_peer_discovery_attempt_time = 5
  200. # Nodes to avoid interacting with for the duration of the program, in the
  201. # format ["host", ["scheme", "scheme"], [port, port]].
  202. # If scheme is left empty it will default to "tcp+tls".
  203. # If ports are left empty all ports from this peer will be blocked.
  204. #blacklist = [["example.com", ["tcp"], [8551, 23331]]]
  205. # Localnet blockchain network configuration
  206. [network_config."localnet"]
  207. # Path to the blockchain database directory
  208. database = "~/.local/share/darkfi/darkfid/localnet"
  209. # Confirmation threshold, denominated by number of blocks
  210. threshold = 3
  211. # PoW block production target, in seconds
  212. pow_target = 10
  213. # Optional fixed PoW difficulty, used for testing
  214. pow_fixed_difficulty = 1
  215. # Skip syncing process and start node right away
  216. skip_sync = true
  217. # Disable transaction's fee verification, used for testing
  218. skip_fees = false
  219. # Optional sync checkpoint height
  220. #checkpoint_height = 0
  221. # Optional sync checkpoint hash
  222. #checkpoint = ""
  223. # Garbage collection task transactions batch size
  224. txs_batch_size = 50
  225. ## Localnet JSON-RPC settings
  226. [network_config."localnet".rpc]
  227. # JSON-RPC listen URL
  228. rpc_listen = "tcp://127.0.0.1:8240"
  229. # Disabled RPC methods
  230. rpc_disabled_methods = ["p2p.get_info"]
  231. ## Localnet JSON-RPC settings for stratum mining requests (optional)
  232. #[network_config."localnet".stratum_rpc]
  233. # JSON-RPC listen URL (stratum mining)
  234. #rpc_listen = "tcp://127.0.0.1:8241"
  235. # Disabled RPC methods (stratum mining)
  236. #rpc_disabled_methods = []
  237. ## Localnet JSON-RPC settings for p2pool merge mining requests (optional)
  238. #[network_config."localnet".mm_rpc]
  239. # JSON-RPC listen URL (merge mining)
  240. #rpc_listen = "http+tcp://127.0.0.1:8241"
  241. # Disabled RPC methods (merge mining)
  242. #rpc_disabled_methods = []
  243. ## Localnet P2P network settings
  244. [network_config."localnet".net]
  245. # Path to the P2P datastore
  246. p2p_datastore = "~/.local/share/darkfi/darkfid/localnet"
  247. # Path to a configured hostlist for saving known peers
  248. hostlist = "~/.local/share/darkfi/darkfid/localnet/p2p_hostlist.tsv"
  249. # P2P accept addresses the instance listens on for inbound connections
  250. #inbound = ["tcp+tls://0.0.0.0:8242"]
  251. # P2P external addresses the instance advertises so other peers can
  252. # reach us and connect to us, as long as inbound addrs are configured.
  253. #external_addrs = []
  254. # Peer nodes to manually connect to
  255. #peers = []
  256. # Seed nodes to connect to for peer discovery and/or adversising our
  257. # own external addresses
  258. #seeds = []
  259. # Whitelisted network transports for outbound connections
  260. #allowed_transports = ["tcp+tls"]
  261. # Transports you want to be mixed (e.g. Tor would be allowed to connect to `tcp://`
  262. # if tcp is added to mixed_transports and tor is added to allowed_transports)
  263. #mixed_transports = []
  264. # Tor Socks5 proxy
  265. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  266. # Nym Socks5 proxy
  267. #nym_socks5_proxy = "socks5://127.0.0.1:1080"
  268. # I2p Socks5 proxy
  269. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  270. # Outbound connection slots number, this many connections will be
  271. # attempted. (This does not include manual connections)
  272. #outbound_connections = 8
  273. # Inbound connections slots number, this many active inbound connections
  274. # will be allowed. (This does not include manual or outbound connections)
  275. #inbound_connections = 8
  276. ## White connection percent
  277. # gold_connect_count = 2
  278. ## White connection percent
  279. # white_connect_percent = 70
  280. # Manual connections retry limit, 0 for forever looping
  281. #manual_attempt_limit = 0
  282. # Outbound connection timeout (in seconds)
  283. #outbound_connect_timeout = 10
  284. # Exchange versions (handshake) timeout (in seconds)
  285. #channel_handshake_timeout = 4
  286. # Ping-pong exchange execution interval (in seconds)
  287. #channel_heartbeat_interval = 10
  288. # Allow localnet hosts
  289. localnet = true
  290. # Cooling off time for peer discovery when unsuccessful
  291. #outbound_peer_discovery_cooloff_time = 30
  292. # Time between peer discovery attempts
  293. #outbound_peer_discovery_attempt_time = 5