darkfid_config.toml 12 KB

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