darkfid_config.toml 8.4 KB

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