darkfid_config.toml 11 KB

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