@@ -2170,10 +2170,15 @@ impl FundingScope {
2170
2170
}
2171
2171
}
2172
2172
2173
- /// Info about a pending splice, used in the pre-splice channel
2173
+ /// Information about pending attempts at funding a channel. This includes funding currently under
2174
+ /// negotiation and any negotiated attempts waiting enough on-chain confirmations. More than one
2175
+ /// such attempt indicates use of RBF to increase the chances of confirmation.
2174
2176
#[cfg(splicing)]
2175
- struct PendingSplice {
2177
+ struct PendingFunding {
2176
2178
pub our_funding_contribution: i64,
2179
+
2180
+ /// The current funding attempt under negotiation. Once signatures have been exchanged, this
2181
+ /// will move to `negotiated_candidates`.
2177
2182
funding: Option<FundingScope>,
2178
2183
2179
2184
/// Funding candidates that have been negotiated but have not reached enough confirmations
@@ -2188,7 +2193,7 @@ struct PendingSplice {
2188
2193
}
2189
2194
2190
2195
#[cfg(splicing)]
2191
- impl PendingSplice {
2196
+ impl PendingFunding {
2192
2197
fn check_get_splice_locked<SP: Deref>(
2193
2198
&mut self, context: &ChannelContext<SP>, confirmed_funding_index: usize, height: u32,
2194
2199
) -> Option<msgs::SpliceLocked>
@@ -5949,7 +5954,7 @@ where
5949
5954
holder_commitment_point: HolderCommitmentPoint,
5950
5955
/// Info about an in-progress, pending splice (if any), on the pre-splice channel
5951
5956
#[cfg(splicing)]
5952
- pending_splice: Option<PendingSplice >,
5957
+ pending_splice: Option<PendingFunding >,
5953
5958
}
5954
5959
5955
5960
#[cfg(splicing)]
@@ -10289,7 +10294,7 @@ where
10289
10294
self.context.channel_id(), err,
10290
10295
)})?;
10291
10296
10292
- self.pending_splice = Some(PendingSplice {
10297
+ self.pending_splice = Some(PendingFunding {
10293
10298
our_funding_contribution: our_funding_contribution_satoshis,
10294
10299
funding: None,
10295
10300
negotiated_candidates: vec![],
0 commit comments