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