Skip to content

Commit

Permalink
Merge pull request #64 from crisdut/fix/chain-mismatch
Browse files Browse the repository at this point in the history
Fix chain mismatch
  • Loading branch information
dr-orlovsky authored Jan 17, 2023
2 parents e7e589a + 456489f commit 91f870b
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 91f870b

Please sign in to comment.