|
|
@@ -6,71 +6,61 @@
|
|
|
## The default values are left commented. They can be overridden either by
|
|
|
## uncommenting, or by using the command-line.
|
|
|
|
|
|
-# Chain to use (testnet, mainnet)
|
|
|
-chain = "testnet"
|
|
|
+# JSON-RPC listen URL
|
|
|
+rpc_listen = "tcp://127.0.0.1:48740"
|
|
|
|
|
|
-# Path to the wallet database
|
|
|
-wallet_path = "darkfid4/wallet.db"
|
|
|
-
|
|
|
-# Password for the wallet database
|
|
|
-wallet_pass = "changeme"
|
|
|
+# Blockchain network to use
|
|
|
+network = "localnet"
|
|
|
|
|
|
+# Localnet blockchain network configuration
|
|
|
+[network_config."localnet"]
|
|
|
# Path to the blockchain database directory
|
|
|
-database = "darkfid4/blockchain"
|
|
|
-
|
|
|
-# JSON-RPC listen url
|
|
|
-rpc_listen = "tcp://127.0.0.1:8740"
|
|
|
+database = "darkfid4"
|
|
|
|
|
|
-# Participate in the consensus protocol
|
|
|
-consensus = true
|
|
|
+# Finalization threshold, denominated by number of blocks
|
|
|
+threshold = 3
|
|
|
|
|
|
-# Enable single-node mode for local testing
|
|
|
-single_node = false
|
|
|
+# minerd JSON-RPC endpoint
|
|
|
+minerd_endpoint = "tcp://127.0.0.1:48867"
|
|
|
|
|
|
-# P2P accept addresses for the consensus protocol
|
|
|
-consensus_p2p_accept = ["tcp://127.0.0.1:8741"]
|
|
|
+# PoW block production target, in seconds
|
|
|
+pow_target = 20
|
|
|
|
|
|
-# P2P external addresses for the consensus protocol
|
|
|
-consensus_p2p_external = ["tcp://127.0.0.1:8741"]
|
|
|
+# Participate in block production
|
|
|
+miner = true
|
|
|
|
|
|
-# Connection slots for the consensus protocol
|
|
|
-#consensus_slots = 8
|
|
|
+# Wallet address to receive mining rewards.
|
|
|
+# This is a dummy one so the miner can start,
|
|
|
+# replace with your own one.
|
|
|
+recipient = "9vw6WznKk7xEFQwwXhJWMMdjUPi3cXL8NrFKQpKifG1U"
|
|
|
|
|
|
-# Connection slots for the consensus protocol
|
|
|
-#consensus_p2p_seed = []
|
|
|
+# Skip syncing process and start node right away
|
|
|
+skip_sync = false
|
|
|
|
|
|
-# Peers to connect to for the consensus protocol
|
|
|
-consensus_p2p_peer = ["tcp://127.0.0.1:8341", "tcp://127.0.0.1:8441", "tcp://127.0.0.1:8541", "tcp://127.0.0.1:8641"]
|
|
|
+## Localnet sync P2P network settings
|
|
|
+[network_config."localnet".sync_net]
|
|
|
+# P2P accept addresses the instance listens on for inbound connections
|
|
|
+inbound = ["tcp+tls://0.0.0.0:48642"]
|
|
|
|
|
|
-# Prefered transports of outbound connections for the consensus protocol
|
|
|
-consensus_p2p_transports = ["tls", "tcp"]
|
|
|
+# Whitelisted network transports for outbound connections
|
|
|
+allowed_transports = ["tcp+tls"]
|
|
|
|
|
|
-# P2P accept addresses for the syncing protocol
|
|
|
-sync_p2p_accept = ["tcp://127.0.0.1:8742"]
|
|
|
+# Peer nodes to manually connect to
|
|
|
+peers = ["tcp+tls://0.0.0.0:48242", "tcp+tls://0.0.0.0:48342", "tcp+tls://0.0.0.0:48442", "tcp+tls://0.0.0.0:48542"]
|
|
|
|
|
|
-# P2P external addresses for the syncing protocol
|
|
|
-sync_p2p_external = ["tcp://127.0.0.1:8742"]
|
|
|
-
|
|
|
-# Connection slots for the syncing protocol
|
|
|
-#sync_slots = 8
|
|
|
+# Allow localnet hosts
|
|
|
+localnet = true
|
|
|
|
|
|
-# Seed nodes to connect to for the syncing protocol
|
|
|
-#sync_p2p_seed = []
|
|
|
+## Localnet miners P2P network settings
|
|
|
+[network_config."localnet".miners_net]
|
|
|
+# P2P accept addresses the instance listens on for inbound connections
|
|
|
+inbound = ["tcp+tls://0.0.0.0:48641"]
|
|
|
|
|
|
-# Peers to connect to for the syncing protocol
|
|
|
-sync_p2p_peer = ["tcp://127.0.0.1:8342", "tcp://127.0.0.1:8442", "tcp://127.0.0.1:8542", "tcp://127.0.0.1:8642"]
|
|
|
+# Whitelisted network transports for outbound connections
|
|
|
+allowed_transports = ["tcp+tls"]
|
|
|
|
|
|
-# Prefered transports of outbound connections for the syncing protocol
|
|
|
-sync_p2p_transports = ["tls", "tcp"]
|
|
|
+# Peer nodes to manually connect to
|
|
|
+peers = ["tcp+tls://0.0.0.0:48241", "tcp+tls://0.0.0.0:48341", "tcp+tls://0.0.0.0:48441", "tcp+tls://0.0.0.0:48541"]
|
|
|
|
|
|
-# Enable localnet hosts
|
|
|
+# Allow localnet hosts
|
|
|
localnet = true
|
|
|
-
|
|
|
-# Enable channel log
|
|
|
-channel_log = true
|
|
|
-
|
|
|
-# Whitelisted faucet public key
|
|
|
-#faucet_pub = []
|
|
|
-
|
|
|
-# Verify system clock is correct
|
|
|
-#clock_sync = true
|