Skip to content

Commit 19a9dbd

Browse files
authored
Merge pull request #4130 from TheBlueMatt/2025-09-misc-followups
2 parents 0d64c86 + 84a220d commit 19a9dbd

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

lightning-liquidity/src/lsps2/service.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ impl TrustModel {
166166
}
167167
}
168168

169-
fn get_funding_tx(&self) -> Option<Transaction> {
169+
fn get_funding_tx(&self) -> Option<&Transaction> {
170170
match self {
171-
TrustModel::ClientTrustsLsp { funding_tx, .. } => funding_tx.clone(),
171+
TrustModel::ClientTrustsLsp { funding_tx, .. } => funding_tx.as_ref(),
172172
_ => None,
173173
}
174174
}
@@ -581,7 +581,7 @@ impl OutboundJITChannel {
581581
}
582582
}
583583

584-
fn get_funding_tx(&self) -> Option<Transaction> {
584+
fn get_funding_tx(&self) -> Option<&Transaction> {
585585
self.trust_model.get_funding_tx()
586586
}
587587

@@ -2028,7 +2028,7 @@ where
20282028
}
20292029

20302030
if let Some(funding_tx) = jit_channel.get_funding_tx() {
2031-
self.tx_broadcaster.broadcast_transactions(&[&funding_tx]);
2031+
self.tx_broadcaster.broadcast_transactions(&[funding_tx]);
20322032
}
20332033
}
20342034
}

lightning/src/chain/channelmonitor.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,11 @@ pub enum Balance {
835835
/// When multiple candidates exist, the last one reflects the balance of the
836836
/// latest splice/RBF attempt, while the first reflects the balance prior to the splice
837837
/// occurring.
838+
///
839+
/// Entries remain in this vec until the pending splice has reached [`ANTI_REORG_DELAY`]
840+
/// confirmations, at which point any conflicts will be removed. Once a splice confirms
841+
/// [`Self::ClaimableOnChannelClose::confirmed_balance_candidate_index`] will point to the
842+
/// confirmed entry, even if it has fewer than [`ANTI_REORG_DELAY`] confirmations.
838843
balance_candidates: Vec<HolderCommitmentTransactionBalance>,
839844
/// The index within [`Balance::ClaimableOnChannelClose::balance_candidates`] for the
840845
/// balance according to the current onchain state of the channel. This can be helpful when

0 commit comments

Comments
 (0)