@@ -2173,10 +2173,15 @@ impl FundingScope {
2173
2173
}
2174
2174
}
2175
2175
2176
- /// Info about a pending splice, used in the pre-splice channel
2176
+ /// Information about pending attempts at funding a channel. This includes funding currently under
2177
+ /// negotiation and any negotiated attempts waiting enough on-chain confirmations. More than one
2178
+ /// such attempt indicates use of RBF to increase the chances of confirmation.
2177
2179
#[cfg(splicing)]
2178
- struct PendingSplice {
2180
+ struct PendingFunding {
2179
2181
pub our_funding_contribution: i64,
2182
+
2183
+ /// The current funding attempt under negotiation. Once signatures have been exchanged, this
2184
+ /// will move to `negotiated_candidates`.
2180
2185
funding: Option<FundingScope>,
2181
2186
2182
2187
/// Funding candidates that have been negotiated but have not reached enough confirmations
@@ -2191,7 +2196,7 @@ struct PendingSplice {
2191
2196
}
2192
2197
2193
2198
#[cfg(splicing)]
2194
- impl PendingSplice {
2199
+ impl PendingFunding {
2195
2200
fn check_get_splice_locked<SP: Deref>(
2196
2201
&mut self, context: &ChannelContext<SP>, confirmed_funding_index: usize, height: u32,
2197
2202
) -> Option<msgs::SpliceLocked>
@@ -5903,7 +5908,7 @@ where
5903
5908
holder_commitment_point: HolderCommitmentPoint,
5904
5909
/// Info about an in-progress, pending splice (if any), on the pre-splice channel
5905
5910
#[cfg(splicing)]
5906
- pending_splice: Option<PendingSplice >,
5911
+ pending_splice: Option<PendingFunding >,
5907
5912
}
5908
5913
5909
5914
#[cfg(splicing)]
@@ -10273,7 +10278,7 @@ where
10273
10278
self.context.channel_id(), err,
10274
10279
)})?;
10275
10280
10276
- self.pending_splice = Some(PendingSplice {
10281
+ self.pending_splice = Some(PendingFunding {
10277
10282
our_funding_contribution: our_funding_contribution_satoshis,
10278
10283
funding: None,
10279
10284
negotiated_candidates: vec![],
0 commit comments