darkfid_config.toml 9.5 KB

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