@@ -2546,8 +2546,10 @@ impl AddSigned for u64 {
2546
2546
}
2547
2547
}
2548
2548
2549
- /// Info about a pending splice
2550
- struct PendingSplice {
2549
+ /// Information about pending attempts at funding a channel. This includes funding currently under
2550
+ /// negotiation and any negotiated attempts waiting enough on-chain confirmations. More than one
2551
+ /// such attempt indicates use of RBF to increase the chances of confirmation.
2552
+ struct PendingFunding {
2551
2553
funding_negotiation: Option<FundingNegotiation>,
2552
2554
2553
2555
/// Funding candidates that have been negotiated but have not reached enough confirmations
@@ -2577,7 +2579,7 @@ impl FundingNegotiation {
2577
2579
}
2578
2580
}
2579
2581
2580
- impl PendingSplice {
2582
+ impl PendingFunding {
2581
2583
fn check_get_splice_locked<SP: Deref>(
2582
2584
&mut self, context: &ChannelContext<SP>, confirmed_funding_index: usize, height: u32,
2583
2585
) -> Option<msgs::SpliceLocked>
@@ -6649,7 +6651,7 @@ where
6649
6651
pub interactive_tx_signing_session: Option<InteractiveTxSigningSession>,
6650
6652
holder_commitment_point: HolderCommitmentPoint,
6651
6653
/// Info about an in-progress, pending splice (if any), on the pre-splice channel
6652
- pending_splice: Option<PendingSplice >,
6654
+ pending_splice: Option<PendingFunding >,
6653
6655
6654
6656
/// Once we become quiescent, if we're the initiator, there's some action we'll want to take.
6655
6657
/// This keeps track of that action. Note that if we become quiescent and we're not the
@@ -11543,7 +11545,7 @@ where
11543
11545
change_script,
11544
11546
};
11545
11547
11546
- self.pending_splice = Some(PendingSplice {
11548
+ self.pending_splice = Some(PendingFunding {
11547
11549
funding_negotiation: Some(FundingNegotiation::AwaitingAck(funding_negotiation_context)),
11548
11550
negotiated_candidates: vec![],
11549
11551
sent_funding_txid: None,
@@ -11763,7 +11765,7 @@ where
11763
11765
11764
11766
let funding_pubkey = splice_funding.get_holder_pubkeys().funding_pubkey;
11765
11767
11766
- self.pending_splice = Some(PendingSplice {
11768
+ self.pending_splice = Some(PendingFunding {
11767
11769
funding_negotiation: Some(FundingNegotiation::ConstructingTransaction(
11768
11770
splice_funding,
11769
11771
interactive_tx_constructor,
0 commit comments