@@ -7493,14 +7493,7 @@ where
74937493 }
74947494 }
74957495
7496- self.monitor_updating_paused(
7497- false,
7498- !update_blocked,
7499- false,
7500- Vec::new(),
7501- Vec::new(),
7502- Vec::new(),
7503- );
7496+ self.monitor_updating_paused(false, !update_blocked, false, Vec::new(), Vec::new());
75047497 UpdateFulfillCommitFetch::NewClaim { monitor_update, htlc_value_msat }
75057498 },
75067499 UpdateFulfillFetch::DuplicateClaim {} => UpdateFulfillCommitFetch::DuplicateClaim {},
@@ -7921,7 +7914,7 @@ where
79217914
79227915 log_info!(logger, "Received initial commitment_signed from peer for channel {}", &self.context.channel_id());
79237916
7924- self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new(), Vec::new() );
7917+ self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new());
79257918 self.context.interactive_tx_signing_session.as_mut().expect("signing session should be present").received_commitment_signed();
79267919 Ok(channel_monitor)
79277920 }
@@ -8025,7 +8018,7 @@ where
80258018 .as_mut()
80268019 .expect("Signing session must exist for negotiated pending splice")
80278020 .received_commitment_signed();
8028- self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new(), Vec::new() );
8021+ self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new());
80298022
80308023 Ok(self.push_ret_blockable_mon_update(monitor_update))
80318024 }
@@ -8330,14 +8323,7 @@ where
83308323
83318324 log_debug!(logger, "Received valid commitment_signed from peer in channel {}, updating HTLC state and responding with{} a revoke_and_ack.",
83328325 &self.context.channel_id(), if need_commitment_signed { " our own commitment_signed and" } else { "" });
8333- self.monitor_updating_paused(
8334- true,
8335- need_commitment_signed,
8336- false,
8337- Vec::new(),
8338- Vec::new(),
8339- Vec::new(),
8340- );
8326+ self.monitor_updating_paused(true, need_commitment_signed, false, Vec::new(), Vec::new());
83418327 return Ok(self.push_ret_blockable_mon_update(monitor_update));
83428328 }
83438329
@@ -8542,7 +8528,7 @@ where
85428528 if update_fee.is_some() { "a fee update, " } else { "" },
85438529 update_add_count, update_fulfill_count, update_fail_count);
85448530
8545- self.monitor_updating_paused(false, true, false, Vec::new(), Vec::new(), Vec::new() );
8531+ self.monitor_updating_paused(false, true, false, Vec::new(), Vec::new());
85468532 (self.push_ret_blockable_mon_update(monitor_update), htlcs_to_fail)
85478533 } else {
85488534 (None, Vec::new())
@@ -8677,7 +8663,6 @@ where
86778663 }
86788664
86798665 log_trace!(logger, "Updating HTLCs on receipt of RAA...");
8680- let mut to_forward_infos = Vec::new();
86818666 let mut pending_update_adds = Vec::new();
86828667 let mut revoked_htlcs = Vec::new();
86838668 let mut finalized_claimed_htlcs = Vec::new();
@@ -8878,7 +8863,6 @@ where
88788863 false,
88798864 true,
88808865 false,
8881- to_forward_infos,
88828866 revoked_htlcs,
88838867 finalized_claimed_htlcs,
88848868 );
@@ -8925,7 +8909,6 @@ where
89258909 false,
89268910 true,
89278911 false,
8928- to_forward_infos,
89298912 revoked_htlcs,
89308913 finalized_claimed_htlcs,
89318914 );
@@ -8938,7 +8921,6 @@ where
89388921 false,
89398922 false,
89408923 false,
8941- to_forward_infos,
89428924 revoked_htlcs,
89438925 finalized_claimed_htlcs,
89448926 );
@@ -9343,14 +9325,12 @@ where
93439325 /// [`ChannelMonitorUpdateStatus::InProgress`]: crate::chain::ChannelMonitorUpdateStatus::InProgress
93449326 fn monitor_updating_paused(
93459327 &mut self, resend_raa: bool, resend_commitment: bool, resend_channel_ready: bool,
9346- mut pending_forwards: Vec<(PendingHTLCInfo, u64)>,
93479328 mut pending_fails: Vec<(HTLCSource, PaymentHash, HTLCFailReason)>,
93489329 mut pending_finalized_claimed_htlcs: Vec<(HTLCSource, Option<AttributionData>)>,
93499330 ) {
93509331 self.context.monitor_pending_revoke_and_ack |= resend_raa;
93519332 self.context.monitor_pending_commitment_signed |= resend_commitment;
93529333 self.context.monitor_pending_channel_ready |= resend_channel_ready;
9353- self.context.monitor_pending_forwards.append(&mut pending_forwards);
93549334 self.context.monitor_pending_failures.append(&mut pending_fails);
93559335 self.context
93569336 .monitor_pending_finalized_fulfills
@@ -10515,7 +10495,7 @@ where
1051510495 }],
1051610496 channel_id: Some(self.context.channel_id()),
1051710497 };
10518- self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new(), Vec::new() );
10498+ self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new());
1051910499 self.push_ret_blockable_mon_update(monitor_update)
1052010500 } else {
1052110501 None
@@ -11272,7 +11252,7 @@ where
1127211252 }],
1127311253 channel_id: Some(self.context.channel_id()),
1127411254 };
11275- self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new(), Vec::new() );
11255+ self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new());
1127611256 let monitor_update = self.push_ret_blockable_mon_update(monitor_update);
1127711257
1127811258 let announcement_sigs =
@@ -12996,7 +12976,7 @@ where
1299612976 let can_add_htlc = send_res.map_err(|(_, msg)| ChannelError::Ignore(msg))?;
1299712977 if can_add_htlc {
1299812978 let monitor_update = self.build_commitment_no_status_check(logger);
12999- self.monitor_updating_paused(false, true, false, Vec::new(), Vec::new(), Vec::new() );
12979+ self.monitor_updating_paused(false, true, false, Vec::new(), Vec::new());
1300012980 Ok(self.push_ret_blockable_mon_update(monitor_update))
1300112981 } else {
1300212982 Ok(None)
@@ -13113,7 +13093,7 @@ where
1311313093 }],
1311413094 channel_id: Some(self.context.channel_id()),
1311513095 };
13116- self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new(), Vec::new() );
13096+ self.monitor_updating_paused(false, false, false, Vec::new(), Vec::new());
1311713097 self.push_ret_blockable_mon_update(monitor_update)
1311813098 } else {
1311913099 None
@@ -13723,7 +13703,7 @@ where
1372313703
1372413704 let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some()
1372513705 || channel.context.signer_pending_channel_ready;
13726- channel.monitor_updating_paused(false, false, need_channel_ready, Vec::new(), Vec::new(), Vec::new() );
13706+ channel.monitor_updating_paused(false, false, need_channel_ready, Vec::new(), Vec::new());
1372713707 Ok((channel, channel_monitor))
1372813708 }
1372913709
@@ -14010,7 +13990,7 @@ where
1401013990 };
1401113991 let need_channel_ready = channel.check_get_channel_ready(0, logger).is_some()
1401213992 || channel.context.signer_pending_channel_ready;
14013- channel.monitor_updating_paused(false, false, need_channel_ready, Vec::new(), Vec::new(), Vec::new() );
13993+ channel.monitor_updating_paused(false, false, need_channel_ready, Vec::new(), Vec::new());
1401413994
1401513995 Ok((channel, funding_signed, channel_monitor))
1401613996 }
0 commit comments