Add blindbit config option

This commit is contained in:
NicolasCantu 2025-06-03 18:40:16 +02:00 committed by Sosthene
parent 6ab48f0b19
commit fbabe71e76

View File

@ -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\""))?