We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f335ecb commit 9d46c4fCopy full SHA for 9d46c4f
lightning/src/sign/mod.rs
@@ -1451,8 +1451,10 @@ impl ChannelSigner for InMemorySigner {
1451
fn new_pubkeys(
1452
&self, splice_parent_funding_txid: Option<Txid>, secp_ctx: &Secp256k1<secp256k1::All>,
1453
) -> ChannelPublicKeys {
1454
+ let use_v2_derivation =
1455
+ self.v2_remote_key_derivation || splice_parent_funding_txid.is_some();
1456
let payment_key =
- if self.v2_remote_key_derivation { &self.payment_key_v2 } else { &self.payment_key_v1 };
1457
+ if use_v2_derivation { &self.payment_key_v2 } else { &self.payment_key_v1 };
1458
let from_secret = |s: &SecretKey| PublicKey::from_secret_key(secp_ctx, s);
1459
let mut pubkeys = ChannelPublicKeys {
1460
funding_pubkey: from_secret(&self.funding_key.0),
0 commit comments