@@ -4597,7 +4597,7 @@ impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
4597
4597
funding_feerate_per_kw: u32, locktime: u32,
4598
4598
) -> msgs::SpliceInit {
4599
4599
// Reuse the existing funding pubkey, in spite of the channel value changing
4600
- // (though at this point we don't know the new value yet, due tue the optional counterparty contribution)
4600
+ // (though at this point we don't know the new value yet, due to the optional counterparty contribution)
4601
4601
// Note that channel_keys_id is supposed NOT to change
4602
4602
let funding_pubkey = self.get_holder_pubkeys().funding_pubkey.clone();
4603
4603
msgs::SpliceInit {
@@ -8370,7 +8370,7 @@ impl<SP: Deref> FundedChannel<SP> where
8370
8370
our_funding_inputs: Vec<(TxIn, Transaction)>, funding_feerate_per_kw: u32, locktime: u32,
8371
8371
) -> Result<msgs::SpliceInit, ChannelError> {
8372
8372
// Check if a splice has been initiated already.
8373
- // Note: this could be handled more nicely, and support multiple outstanding splice's, the incoming splice_ack matters anyways.
8373
+ // Note: only a single outstanding splice is supported (per spec)
8374
8374
if let Some(splice_info) = &self.pending_splice_pre {
8375
8375
return Err(ChannelError::Warn(format!(
8376
8376
"Channel has already a splice pending, contribution {}", splice_info.our_funding_contribution
@@ -8381,6 +8381,8 @@ impl<SP: Deref> FundedChannel<SP> where
8381
8381
return Err(ChannelError::Warn(format!("Cannot initiate splicing, as channel is not Ready")));
8382
8382
}
8383
8383
8384
+ // TODO(splicing): check for quiescence
8385
+
8384
8386
let pre_channel_value = self.funding.get_value_satoshis();
8385
8387
// Sanity check: capacity cannot decrease below 0
8386
8388
if (pre_channel_value as i64).saturating_add(our_funding_contribution_satoshis) < 0 {
@@ -8397,7 +8399,7 @@ impl<SP: Deref> FundedChannel<SP> where
8397
8399
)));
8398
8400
}
8399
8401
8400
- // Note: post-splice channel value is not yet known at this point, counterpary contribution is not known
8402
+ // Note: post-splice channel value is not yet known at this point, counterparty contribution is not known
8401
8403
// (Cannot test for miminum required post-splice channel value)
8402
8404
8403
8405
// Check that inputs are sufficient to cover our contribution
0 commit comments