darkfid_config.toml 12 KB

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