diff --git a/src/config.rs b/src/config.rs index ffd9197..dc8e939 100644 --- a/src/config.rs +++ b/src/config.rs @@ -14,6 +14,7 @@ pub struct Config { pub wallet_name: String, pub network: Network, pub electrum_url: String, + pub blindbit_url: String, pub zmq_url: String, pub data_dir: String, } @@ -67,6 +68,10 @@ impl Config { .remove("electrum_url") .ok_or(Error::msg("No \"electrum_url\""))? .to_owned(), + blindbit_url: file_content + .remove("blindbit_url") + .ok_or(Error::msg("No \"blindbit_url\""))? + .to_owned(), zmq_url: file_content .remove("zmq_url") .ok_or(Error::msg("No \"zmq_url\""))?