darkfid_config.toml 11 KB

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