darkfid_config.toml 11 KB

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