darkfid_config.toml 12 KB

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