darkfid_config.toml 11 KB

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