darkfid_config.toml 8.3 KB

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