File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
lightning-liquidity/src/lsps2 Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ impl TrustModel {
166
166
}
167
167
}
168
168
169
- fn get_funding_tx ( & self ) -> Option < Transaction > {
169
+ fn get_funding_tx ( & self ) -> Option < & Transaction > {
170
170
match self {
171
- TrustModel :: ClientTrustsLsp { funding_tx, .. } => funding_tx. clone ( ) ,
171
+ TrustModel :: ClientTrustsLsp { funding_tx, .. } => funding_tx. as_ref ( ) ,
172
172
_ => None ,
173
173
}
174
174
}
@@ -581,7 +581,7 @@ impl OutboundJITChannel {
581
581
}
582
582
}
583
583
584
- fn get_funding_tx ( & self ) -> Option < Transaction > {
584
+ fn get_funding_tx ( & self ) -> Option < & Transaction > {
585
585
self . trust_model . get_funding_tx ( )
586
586
}
587
587
@@ -2028,7 +2028,7 @@ where
2028
2028
}
2029
2029
2030
2030
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] ) ;
2032
2032
}
2033
2033
}
2034
2034
}
Original file line number Diff line number Diff line change @@ -835,6 +835,11 @@ pub enum Balance {
835
835
/// When multiple candidates exist, the last one reflects the balance of the
836
836
/// latest splice/RBF attempt, while the first reflects the balance prior to the splice
837
837
/// 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.
838
843
balance_candidates : Vec < HolderCommitmentTransactionBalance > ,
839
844
/// The index within [`Balance::ClaimableOnChannelClose::balance_candidates`] for the
840
845
/// balance according to the current onchain state of the channel. This can be helpful when
You can’t perform that action at this time.
0 commit comments