darkfid_config.toml 12 KB

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