darkfid_config.toml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  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. # 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. # Whitelisted network transports for outbound connections
  169. allowed_transports = ["tcp+tls"]
  170. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  171. #transport_mixing = true
  172. # Tor Socks5 proxy
  173. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  174. # I2p Socks5 proxy
  175. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  176. # Outbound connection slots number, this many connections will be
  177. # attempted. (This does not include manual connections)
  178. outbound_connections = 8
  179. # Inbound connections slots number, this many active inbound connections
  180. # will be allowed. (This does not include manual or outbound connections)
  181. #inbound_connections = 0
  182. # Manual connections retry limit, 0 for forever looping
  183. #manual_attempt_limit = 0
  184. # Outbound connection timeout (in seconds)
  185. #outbound_connect_timeout = 10
  186. # Exchange versions (handshake) timeout (in seconds)
  187. #channel_handshake_timeout = 4
  188. # Ping-pong exchange execution interval (in seconds)
  189. #channel_heartbeat_interval = 10
  190. # Allow localnet hosts
  191. localnet = false
  192. # Cooling off time for peer discovery when unsuccessful
  193. #outbound_peer_discovery_cooloff_time = 30
  194. # Time between peer discovery attempts
  195. #outbound_peer_discovery_attempt_time = 5
  196. # Mainnet blockchain network configuration
  197. [network_config."mainnet"]
  198. # Path to the blockchain database directory
  199. database = "~/.local/share/darkfi/darkfid/mainnet"
  200. # Confirmation threshold, denominated by number of blocks
  201. threshold = 11
  202. # minerd JSON-RPC endpoint
  203. #minerd_endpoint = "tcp://127.0.0.1:28467"
  204. # PoW block production target, in seconds
  205. pow_target = 90
  206. # Wallet address to receive mining rewards.
  207. #recipient = "YOUR_WALLET_ADDRESS_HERE"
  208. # Optional contract spend hook to use in the mining reward
  209. #spend_hook = "YOUR_SPEND_HOOK_HERE"
  210. # Optional user data to use in the mining reward
  211. #user_data = "YOUR_USER_DATA_HERE"
  212. # Skip syncing process and start node right away
  213. skip_sync = false
  214. # Disable transaction's fee verification, used for testing
  215. skip_fees = false
  216. # Optional sync checkpoint height
  217. #checkpoint_height = 0
  218. # Optional sync checkpoint hash
  219. #checkpoint = ""
  220. # Optional bootstrap timestamp
  221. #bootstrap = 1712581283
  222. # Garbage collection task transactions batch size
  223. txs_batch_size = 50
  224. ## Mainnet JSON-RPC settings
  225. [network_config."mainnet".rpc]
  226. # JSON-RPC listen URL
  227. rpc_listen = "tcp://127.0.0.1:8440"
  228. # Disabled RPC methods
  229. rpc_disabled_methods = ["p2p.get_info"]
  230. ## Mainnet JSON-RPC settings for p2pool merge mining requests (optional)
  231. #[network_config."mainnet".mm_rpc]
  232. # JSON-RPC listen URL (merge mining)
  233. #rpc_listen = "http+tcp://127.0.0.1:8441"
  234. # Disabled RPC methods (merge mining)
  235. #rpc_disabled_methods = []
  236. ## Mainnet P2P network settings
  237. [network_config."mainnet".net]
  238. # Path to the P2P datastore
  239. p2p_datastore = "~/.local/share/darkfi/darkfid/mainnet"
  240. # Path to a configured hostlist for saving known peers
  241. hostlist = "~/.local/share/darkfi/darkfid/mainnet/p2p_hostlist.tsv"
  242. # P2P accept addresses the instance listens on for inbound connections
  243. # You can also use an IPv6 address
  244. #inbound = ["tcp+tls://0.0.0.0:8442"]
  245. # IPv6 version:
  246. #inbound = ["tcp+tls://[::]:8442"]
  247. # Combined:
  248. #inbound = ["tcp+tls://0.0.0.0:8442", "tcp+tls://[::]:8442"]
  249. # P2P external addresses the instance advertises so other peers can
  250. # reach us and connect to us, as long as inbound addrs are configured.
  251. # You can also use an IPv6 address
  252. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442"]
  253. # IPv6 version:
  254. #external_addrs = ["tcp+tls://[ipv6 address here]:8442"]
  255. # Combined:
  256. #external_addrs = ["tcp+tls://XXX.XXX.XXX.XXX:8442", "tcp+tls://[ipv6 address here]:8442"]
  257. # Peer nodes to manually connect to
  258. #peers = []
  259. # Seed nodes to connect to for peer discovery and/or adversising our
  260. # own external addresses
  261. seeds = ["tcp+tls://lilith0.dark.fi:8442", "tcp+tls://lilith1.dark.fi:8442"]
  262. # Whitelisted network transports for outbound connections
  263. allowed_transports = ["tcp+tls"]
  264. # Allow transport mixing (e.g. Tor would be allowed to connect to `tcp://`)
  265. #transport_mixing = true
  266. # Tor Socks5 proxy
  267. #tor_socks5_proxy = "socks5://127.0.0.1:9050"
  268. # I2p Socks5 proxy
  269. #i2p_socks5_proxy = "socks5://127.0.0.1:4447"
  270. # Outbound connection slots number, this many connections will be
  271. # attempted. (This does not include manual connections)
  272. outbound_connections = 8
  273. # Inbound connections slots number, this many active inbound connections
  274. # will be allowed. (This does not include manual or outbound connections)
  275. #inbound_connections = 0
  276. # Manual connections retry limit, 0 for forever looping
  277. #manual_attempt_limit = 0
  278. # Outbound connection timeout (in seconds)
  279. #outbound_connect_timeout = 10
  280. # Exchange versions (handshake) timeout (in seconds)
  281. #channel_handshake_timeout = 4
  282. # Ping-pong exchange execution interval (in seconds)
  283. #channel_heartbeat_interval = 10
  284. # Allow localnet hosts
  285. localnet = false
  286. # Cooling off time for peer discovery when unsuccessful
  287. #outbound_peer_discovery_cooloff_time = 30
  288. # Time between peer discovery attempts
  289. #outbound_peer_discovery_attempt_time = 5
  290. # Nodes to avoid interacting with for the duration of the program, in the
  291. # format ["host", ["scheme", "scheme"], [port, port]].
  292. # If scheme is left empty it will default to "tcp+tls".
  293. # If ports are left empty all ports from this peer will be blocked.
  294. #blacklist = [["example.com", ["tcp"], [8551, 23331]]]