Skip to content

Commit

Permalink
fix chain mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
crisdut committed Jan 7, 2023
1 parent 4c5234f commit 456489f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/lnpd/funding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
)]
Expand Down

0 comments on commit 456489f

Please sign in to comment.