@@ -1519,7 +1519,7 @@ impl<SP: Deref> Channel<SP> where
1519
1519
holder_commitment_point,
1520
1520
is_v2_established: true,
1521
1521
#[cfg(splicing)]
1522
- pending_splice_pre : None,
1522
+ pending_splice : None,
1523
1523
};
1524
1524
let res = funded_channel.commitment_signed_initial_v2(msg, best_block, signer_provider, logger)
1525
1525
.map(|monitor| (Some(monitor), None))
@@ -4694,14 +4694,14 @@ fn estimate_v2_funding_transaction_fee(
4694
4694
fee_for_weight(funding_feerate_sat_per_1000_weight, weight)
4695
4695
}
4696
4696
4697
- /// Verify that the provided inputs by a counterparty to the funding transaction are enough
4698
- /// to cover the intended contribution amount *plus* the proportional fees of the counterparty .
4697
+ /// Verify that the provided inputs to the funding transaction are enough
4698
+ /// to cover the intended contribution amount *plus* the proportional fees.
4699
4699
/// Fees are computed using `estimate_v2_funding_transaction_fee`, and contain
4700
4700
/// the fees of the inputs, fees of the inputs weight, and for the initiator,
4701
4701
/// the fees of the common fields as well as the output and extra input weights.
4702
4702
/// Returns estimated (partial) fees as additional information
4703
4703
#[cfg(splicing)]
4704
- pub(super) fn check_v2_funding_inputs_sufficient(
4704
+ fn check_v2_funding_inputs_sufficient(
4705
4705
contribution_amount: i64, funding_inputs: &[(TxIn, Transaction, Weight)], is_initiator: bool,
4706
4706
is_splice: bool, funding_feerate_sat_per_1000_weight: u32,
4707
4707
) -> Result<u64, ChannelError> {
@@ -4777,7 +4777,7 @@ pub(super) struct FundedChannel<SP: Deref> where SP::Target: SignerProvider {
4777
4777
is_v2_established: bool,
4778
4778
/// Info about an in-progress, pending splice (if any), on the pre-splice channel
4779
4779
#[cfg(splicing)]
4780
- pending_splice_pre : Option<PendingSplice>,
4780
+ pending_splice : Option<PendingSplice>,
4781
4781
}
4782
4782
4783
4783
#[cfg(any(test, fuzzing))]
@@ -8415,7 +8415,7 @@ impl<SP: Deref> FundedChannel<SP> where
8415
8415
) -> Result<msgs::SpliceInit, APIError> {
8416
8416
// Check if a splice has been initiated already.
8417
8417
// Note: only a single outstanding splice is supported (per spec)
8418
- if let Some(splice_info) = &self.pending_splice_pre {
8418
+ if let Some(splice_info) = &self.pending_splice {
8419
8419
return Err(APIError::APIMisuseError { err: format!(
8420
8420
"Channel {} cannot be spliced, as it has already a splice pending (contribution {})",
8421
8421
self.context.channel_id(), splice_info.our_funding_contribution
@@ -8452,7 +8452,7 @@ impl<SP: Deref> FundedChannel<SP> where
8452
8452
self.context.channel_id(), err,
8453
8453
)})?;
8454
8454
8455
- self.pending_splice_pre = Some(PendingSplice {
8455
+ self.pending_splice = Some(PendingSplice {
8456
8456
our_funding_contribution: our_funding_contribution_satoshis,
8457
8457
});
8458
8458
@@ -8486,8 +8486,7 @@ impl<SP: Deref> FundedChannel<SP> where
8486
8486
let our_funding_contribution_satoshis = 0i64;
8487
8487
8488
8488
// Check if a splice has been initiated already.
8489
- // Note: this could be handled more nicely, and support multiple outstanding splice's, the incoming splice_ack matters anyways.
8490
- if let Some(splice_info) = &self.pending_splice_pre {
8489
+ if let Some(splice_info) = &self.pending_splice {
8491
8490
return Err(ChannelError::Warn(format!(
8492
8491
"Channel has already a splice pending, contribution {}", splice_info.our_funding_contribution,
8493
8492
)));
@@ -8541,7 +8540,7 @@ impl<SP: Deref> FundedChannel<SP> where
8541
8540
#[cfg(splicing)]
8542
8541
pub fn splice_ack(&mut self, _msg: &msgs::SpliceAck) -> Result<(), ChannelError> {
8543
8542
// check if splice is pending
8544
- if self.pending_splice_pre .is_none() {
8543
+ if self.pending_splice .is_none() {
8545
8544
return Err(ChannelError::Warn(format!("Channel is not in pending splice")));
8546
8545
};
8547
8546
@@ -9470,7 +9469,7 @@ impl<SP: Deref> OutboundV1Channel<SP> where SP::Target: SignerProvider {
9470
9469
is_v2_established: false,
9471
9470
holder_commitment_point,
9472
9471
#[cfg(splicing)]
9473
- pending_splice_pre : None,
9472
+ pending_splice : None,
9474
9473
};
9475
9474
9476
9475
let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some()
@@ -9739,7 +9738,7 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
9739
9738
is_v2_established: false,
9740
9739
holder_commitment_point,
9741
9740
#[cfg(splicing)]
9742
- pending_splice_pre : None,
9741
+ pending_splice : None,
9743
9742
};
9744
9743
let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some()
9745
9744
|| channel.context.signer_pending_channel_ready;
@@ -11101,7 +11100,7 @@ impl<'a, 'b, 'c, ES: Deref, SP: Deref> ReadableArgs<(&'a ES, &'b SP, &'c Channel
11101
11100
is_v2_established,
11102
11101
holder_commitment_point,
11103
11102
#[cfg(splicing)]
11104
- pending_splice_pre : None,
11103
+ pending_splice : None,
11105
11104
})
11106
11105
}
11107
11106
}
0 commit comments