Skip to content

Commit

Permalink
Minor channel cloning touches
Browse files Browse the repository at this point in the history
  • Loading branch information
optout21 committed Sep 19, 2024
1 parent d8198d2 commit 3fa228b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2517,7 +2517,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {

funding_tx_confirmed_in: None,
funding_tx_confirmation_height: 0,
short_channel_id: None,
short_channel_id: pre_splice_context.short_channel_id,
channel_creation_height: pre_splice_context.channel_creation_height,

feerate_per_kw: pre_splice_context.feerate_per_kw,
Expand Down Expand Up @@ -2592,11 +2592,11 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
pending_splice_post: Some(pending_splice_post),
};

// Update funding pubkeys
context.channel_transaction_parameters.holder_pubkeys.funding_pubkey = holder_signer_funding_pubkey;
if context.channel_transaction_parameters.counterparty_parameters.is_some() {
context.channel_transaction_parameters.counterparty_parameters.as_mut().unwrap().pubkeys.funding_pubkey = counterparty_funding_pubkey.clone();
}
// // Update funding pubkeys -- Not needed as funding pubkeys do not change
// context.channel_transaction_parameters.holder_pubkeys.funding_pubkey = holder_signer_funding_pubkey;
// if context.channel_transaction_parameters.counterparty_parameters.is_some() {
// context.channel_transaction_parameters.counterparty_parameters.as_mut().unwrap().pubkeys.funding_pubkey = counterparty_funding_pubkey.clone();
// }

// Reset funding tx
context.channel_transaction_parameters.funding_outpoint = None;
Expand Down

0 comments on commit 3fa228b

Please sign in to comment.