darkfid_config.toml 7.7 KB

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