@@ -2173,10 +2173,15 @@ impl FundingScope {
21732173 }
21742174}
21752175
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.
21772179#[cfg(splicing)]
2178- struct PendingSplice {
2180+ struct PendingFunding {
21792181 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`.
21802185 funding: Option<FundingScope>,
21812186
21822187 /// Funding candidates that have been negotiated but have not reached enough confirmations
@@ -2191,7 +2196,7 @@ struct PendingSplice {
21912196}
21922197
21932198#[cfg(splicing)]
2194- impl PendingSplice {
2199+ impl PendingFunding {
21952200 fn check_get_splice_locked<SP: Deref>(
21962201 &mut self, context: &ChannelContext<SP>, confirmed_funding_index: usize, height: u32,
21972202 ) -> Option<msgs::SpliceLocked>
@@ -5903,7 +5908,7 @@ where
59035908 holder_commitment_point: HolderCommitmentPoint,
59045909 /// Info about an in-progress, pending splice (if any), on the pre-splice channel
59055910 #[cfg(splicing)]
5906- pending_splice: Option<PendingSplice >,
5911+ pending_splice: Option<PendingFunding >,
59075912}
59085913
59095914#[cfg(splicing)]
@@ -10273,7 +10278,7 @@ where
1027310278 self.context.channel_id(), err,
1027410279 )})?;
1027510280
10276- self.pending_splice = Some(PendingSplice {
10281+ self.pending_splice = Some(PendingFunding {
1027710282 our_funding_contribution: our_funding_contribution_satoshis,
1027810283 funding: None,
1027910284 negotiated_candidates: vec![],
0 commit comments