Skip to content

Commit

Permalink
Make sure we listen on default nwa relay
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Mar 7, 2024
1 parent 1d0ab6c commit eda2e60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/listener.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::models::ConfigType;
use crate::nip49::NIP49Confirmation;
use crate::profile_handler::{get_user_lnurl, pay_to_lnurl};
use crate::utils::map_emoji;
use crate::{utils, LnUrlCacheResult};
use crate::{utils, LnUrlCacheResult, DEFAULT_AUTH_RELAY};
use anyhow::anyhow;
use bitcoin::bip32::{ChildNumber, ExtendedPrivKey};
use bitcoin::hashes::hex::FromHex;
Expand Down Expand Up @@ -56,6 +56,7 @@ pub async fn start_listener(
let nwc_relays = ZapConfig::get_nwc_relays(&mut conn)?;
drop(conn);
relays.extend(nwc_relays.into_keys().map(|r| r.to_string()));
relays.push(DEFAULT_AUTH_RELAY.to_string());
relays.sort();
relays.dedup();

Expand Down

0 comments on commit eda2e60

Please sign in to comment.