From 456489fc9bb7a9ed337295409259673980ffbf95 Mon Sep 17 00:00:00 2001 From: Armando Dutra Date: Fri, 6 Jan 2023 22:34:54 -0300 Subject: [PATCH] fix chain mismatch --- src/lnpd/funding.rs | 5 +++-- src/opts.rs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lnpd/funding.rs b/src/lnpd/funding.rs index 5ee34dd..8e97d21 100644 --- a/src/lnpd/funding.rs +++ b/src/lnpd/funding.rs @@ -167,8 +167,9 @@ impl FundingWallet { let is_correct_network = match (wallet_network, target_network) { (Network::Bitcoin, Network::Bitcoin) => true, - (Network::Testnet, Network::Testnet | Network::Regtest | Network::Signet) => true, - _ => false, + (Network::Bitcoin, _) => false, + (_, Network::Bitcoin) => false, + _ => true, }; if !is_correct_network { diff --git a/src/opts.rs b/src/opts.rs index d2149ee..ca28e6d 100644 --- a/src/opts.rs +++ b/src/opts.rs @@ -175,7 +175,7 @@ pub struct Opts { #[clap( long, global = true, - default_value("pandora.network"), + default_value("electrum.blockstream.info"), env = "LNP_NODE_ELECTRUM_SERVER", value_hint = ValueHint::Hostname )]