diff --git a/src/constants.rs b/src/constants.rs index d46e528c..05f00d2f 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -136,6 +136,7 @@ pub static CARBONADO_ENDPOINT: Lazy> = pub async fn get_env(key: &str) -> String { match key { "LNDHUB_ENDPOINT" => LNDHUB_ENDPOINT.read().await.to_string(), + "BITMASK_ENDPOINT" => BITMASK_ENDPOINT.read().await.to_string(), "CARBONADO_ENDPOINT" => CARBONADO_ENDPOINT.read().await.to_string(), "BITCOIN_EXPLORER_API_MAINNET" => BITCOIN_EXPLORER_API_MAINNET.read().await.to_string(), "BITCOIN_EXPLORER_API_TESTNET" => BITCOIN_EXPLORER_API_TESTNET.read().await.to_string(), @@ -155,6 +156,7 @@ pub async fn get_env(key: &str) -> String { pub async fn set_env(key: &str, value: &str) { match key { "LNDHUB_ENDPOINT" => *LNDHUB_ENDPOINT.write().await = value.to_owned(), + "BITMASK_ENDPOINT" => *BITMASK_ENDPOINT.write().await = value.to_owned(), "CARBONADO_ENDPOINT" => *CARBONADO_ENDPOINT.write().await = value.to_owned(), "BITCOIN_EXPLORER_API_MAINNET" => { *BITCOIN_EXPLORER_API_MAINNET.write().await = value.to_owned()