mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
contrib/localnet/darkfid*: updated to work with latest darkfid
This commit is contained in:
@@ -6,71 +6,55 @@
|
||||
## 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:48340"
|
||||
|
||||
# Path to the wallet database
|
||||
wallet_path = "darkfid0/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 = "darkfid0/blockchain"
|
||||
database = "darkfid0"
|
||||
|
||||
# JSON-RPC listen url
|
||||
rpc_listen = "tcp://127.0.0.1:8340"
|
||||
# Finalization threshold, denominated by number of blocks
|
||||
threshold = 3
|
||||
|
||||
# Participate in the consensus protocol
|
||||
consensus = true
|
||||
# minerd JSON-RPC endpoint
|
||||
minerd_endpoint = "tcp://127.0.0.1:48467"
|
||||
|
||||
# Enable single-node mode for local testing
|
||||
single_node = false
|
||||
# PoW block production target, in seconds
|
||||
pow_target = 20
|
||||
|
||||
# P2P accept addresses for the consensus protocol
|
||||
consensus_p2p_accept = ["tcp://127.0.0.1:8341"]
|
||||
# Participate in block production
|
||||
miner = true
|
||||
|
||||
# P2P external addresses for the consensus protocol
|
||||
consensus_p2p_external = ["tcp://127.0.0.1:8341"]
|
||||
# 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_slots = 8
|
||||
# Skip syncing process and start node right away
|
||||
skip_sync = true
|
||||
|
||||
# Connection slots for the consensus protocol
|
||||
#consensus_p2p_seed = []
|
||||
## 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:48242"]
|
||||
|
||||
# Peers to connect to for the consensus protocol
|
||||
#consensus_p2p_peer = []
|
||||
# Whitelisted network transports for outbound connections
|
||||
allowed_transports = ["tcp+tls"]
|
||||
|
||||
# Prefered transports of outbound connections for the consensus protocol
|
||||
consensus_p2p_transports = ["tls", "tcp"]
|
||||
|
||||
# P2P accept addresses for the syncing protocol
|
||||
sync_p2p_accept = ["tcp://127.0.0.1:8342"]
|
||||
|
||||
# P2P external addresses for the syncing protocol
|
||||
sync_p2p_external = ["tcp://127.0.0.1:8342"]
|
||||
|
||||
# Connection slots for the syncing protocol
|
||||
#sync_slots = 8
|
||||
|
||||
# Seed nodes to connect to for the syncing protocol
|
||||
#sync_p2p_seed = []
|
||||
|
||||
# Peers to connect to for the syncing protocol
|
||||
#sync_p2p_peer = []
|
||||
|
||||
# Prefered transports of outbound connections for the syncing protocol
|
||||
sync_p2p_transports = ["tls", "tcp"]
|
||||
|
||||
# Enable localnet hosts
|
||||
# Allow localnet hosts
|
||||
localnet = true
|
||||
|
||||
# Enable channel log
|
||||
channel_log = true
|
||||
## 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:48241"]
|
||||
|
||||
# Whitelisted faucet public key
|
||||
#faucet_pub = []
|
||||
# Whitelisted network transports for outbound connections
|
||||
allowed_transports = ["tcp+tls"]
|
||||
|
||||
# Verify system clock is correct
|
||||
#clock_sync = true
|
||||
# Allow localnet hosts
|
||||
localnet = true
|
||||
|
||||
Reference in New Issue
Block a user