Просмотр исходного кода

darkfid: Update config file for testnet.

parazyd 3 лет назад
Родитель
Сommit
7c609169b4
2 измененных файлов с 12 добавлено и 12 удалено
  1. 11 11
      bin/darkfid/darkfid_config.toml
  2. 1 1
      bin/drk/src/main.rs

+ 11 - 11
bin/darkfid/darkfid_config.toml

@@ -7,22 +7,22 @@
 ## uncommenting, or by using the command-line.
 
 # Chain to use (testnet, mainnet)
-#chain = "testnet"
+chain = "testnet"
 
 # Path to the wallet database
-#wallet_path = "~/.config/darkfi/darkfid_wallet.db"
+wallet_path = "~/.config/darkfi/darkfid_wallet_testnet.db"
 
 # Password for the wallet database
 #wallet_pass = "changeme"
 
 # Path to the blockchain database directory
-#database = "~/.config/darkfi/darkfid_blockchain"
+database = "~/.config/darkfi/darkfid_blockchain_testnet"
 
 # JSON-RPC listen URL
-#rpc_listen = "tcp://127.0.0.1:8340"
+rpc_listen = "tcp://127.0.0.1:8340"
 
 # Participate in the consensus protocol
-#consensus = false
+consensus = false
 
 # P2P accept addresses for the consensus protocol
 #consensus_p2p_accept = ["tls://127.0.0.1:8341"]
@@ -49,25 +49,25 @@
 #consensus_p2p_transports = ["tls", "tcp"]
 
 # P2P accept addresses for the syncing protocol
-#sync_p2p_accept = ["tls://127.0.0.1:8342"]
+sync_p2p_accept = ["tls://0.0.0.0:8342"]
 
 # P2P external addresses for the syncing protocol
 #sync_p2p_external = ["tls://127.0.0.1:8342"]
 
 # Connection slots for the syncing protocol
-#sync_slots = 8
+sync_slots = 8
 
 # Seed nodes to connect to for the syncing protocol
-#sync_p2p_seed = []
+sync_p2p_seed = ["tls:/lilith0.dark.fi:8342", "tls://lilith1.dark.fi:8342"]
 
 # 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"]
+sync_p2p_transports = ["tls"]
 
 # Enable localnet hosts
-#localnet = true
+localnet = false
 
 # Enable channel log
 #channel_log = true
@@ -76,7 +76,7 @@
 #cashier_pub = []
 
 # Whitelisted faucet addresses
-#faucet_pub = []
+faucet_pub = ["3ce5xa3PjuQGFtTaF7AvMJp7fGxqeGRJx7zj3LCwNCkP"]
 
 # Verify system clock is correct
 #clock_sync = true

+ 1 - 1
bin/drk/src/main.rs

@@ -126,7 +126,7 @@ enum Subcmd {
     /// Airdrop some tokens
     Airdrop {
         /// Faucet JSON-RPC endpoint
-        #[arg(short, long, default_value = "tcp://127.0.0.1:8340")]
+        #[arg(short, long, default_value = "tls://faucetd.testnet.dark.fi:18340")]
         faucet_endpoint: Url,
 
         /// Amount to request from the faucet