Skip to content

Commit 776d762

Browse files
committed
f - clear sent_funding_txid
1 parent a93df89 commit 776d762

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8892,6 +8892,13 @@ impl<SP: Deref> FundedChannel<SP> where
88928892

88938893
funding.funding_tx_confirmation_height = 0;
88948894

8895+
// Check if we sent splice_locked for the unconfirmed transaction
8896+
if let Some(pending_splice) = &mut self.pending_splice {
8897+
if pending_splice.sent_funding_txid == Some(*txid) {
8898+
pending_splice.sent_funding_txid = None;
8899+
}
8900+
}
8901+
88958902
match self.do_best_block_updated(reorg_height, best_time, None::<(ChainHash, &&dyn NodeSigner, &UserConfig)>, logger) {
88968903
Ok((channel_ready, timed_out_htlcs, announcement_sigs)) => {
88978904
assert!(channel_ready.is_none(), "We can't generate a funding with 0 confirmations?");

0 commit comments

Comments
 (0)