darkfid_config.toml 11 KB

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