@@ -8667,8 +8667,7 @@ where
8667
8667
#[rustfmt::skip]
8668
8668
pub fn channel_reestablish<L: Deref, NS: Deref>(
8669
8669
&mut self, msg: &msgs::ChannelReestablish, logger: &L, node_signer: &NS,
8670
- chain_hash: ChainHash, their_features: &InitFeatures, user_config: &UserConfig,
8671
- best_block: &BestBlock,
8670
+ chain_hash: ChainHash, user_config: &UserConfig, best_block: &BestBlock
8672
8671
) -> Result<ReestablishResponses, ChannelError>
8673
8672
where
8674
8673
L::Target: Logger,
@@ -8791,21 +8790,9 @@ where
8791
8790
let is_awaiting_remote_revoke = self.context.channel_state.is_awaiting_remote_revoke();
8792
8791
let next_counterparty_commitment_number = INITIAL_COMMITMENT_NUMBER - self.context.cur_counterparty_commitment_transaction_number + if is_awaiting_remote_revoke { 1 } else { 0 };
8793
8792
8794
- let our_features = channelmanager::provided_init_features(user_config);
8795
- let splicing_negotiated =
8796
- our_features.supports_splicing() && their_features.supports_splicing();
8797
- let channel_ready = if msg.next_local_commitment_number == 1 && INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.transaction_number() == 1 && !splicing_negotiated {
8793
+ let channel_ready = if msg.next_local_commitment_number == 1 && INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.transaction_number() == 1 {
8798
8794
// We should never have to worry about MonitorUpdateInProgress resending ChannelReady
8799
8795
self.get_channel_ready(logger)
8800
- } else if splicing_negotiated {
8801
- // A node:
8802
- // - if `option_splice` was negotiated and `your_last_funding_locked` is not
8803
- // set in the `channel_reestablish` it received:
8804
- // - MUST retransmit `channel_ready`.
8805
- msg.your_last_funding_locked_txid
8806
- .is_none()
8807
- .then(|| ())
8808
- .and_then(|_| self.get_channel_ready(logger))
8809
8796
} else { None };
8810
8797
8811
8798
if msg.next_local_commitment_number == next_counterparty_commitment_number {
0 commit comments