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

darkfid.toml, cli/cli_config: added gateway URLs and mint/spend path

lunar-mining 4 лет назад
Родитель
Сommit
9964cb301f
2 измененных файлов с 20 добавлено и 0 удалено
  1. 12 0
      example/config/darkfid.toml
  2. 8 0
      src/cli/cli_config.rs

+ 12 - 0
example/config/darkfid.toml

@@ -21,6 +21,18 @@ tls_identity_password = "FOOBAR"
 cashier_rpc_url = "tcp://127.0.0.1:9000"
 #cashier_rpc_url = "tls://127.0.0.1:9000"
 
+# The endpoint to a gatewayd protocol API
+gateway_protocol_url = "127.0.0.1:3333"
+
+# The endpoint to a gatewayd publisher API
+gateway_publisher_url = "127.0.0.1:4444"
+
+# Path to mint.params
+mint_params_path = "~/.config/darkfi/cashierd_mint.params"
+
+# Path to spend.params
+spend_params_path = "~/.config/darkfi/cashierd_spend.params"
+
 # Path to the client database
 database_path = "~/.config/darkfi/darkfid_client.db"
 

+ 8 - 0
src/cli/cli_config.rs

@@ -50,6 +50,14 @@ pub struct DarkfidConfig {
     pub tls_identity_password: String,
     /// The RPC endpoint for a selected cashier
     pub cashier_rpc_url: String,
+    /// The endpoint to a gatewayd protocol API
+    pub gateway_protocol_url: String,
+    /// The endpoint to a gatewayd publisher API
+    pub gateway_publisher_url: String,
+    /// Path to mint.params
+    pub mint_params_path: String,
+    /// Path to spend.params
+    pub spend_params_path: String,
     /// Path to the client database
     pub database_path: String,
     /// Path to the wallet database