Skip to content

Commit 048f0e1

Browse files
committed
f correctly use raa_monitor_updates_held
1 parent cc63333 commit 048f0e1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

lightning/src/ln/channelmanager.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -5940,12 +5940,9 @@ where
59405940
hash_map::Entry::Occupied(mut chan) => {
59415941
let funding_txo_opt = chan.get().context.get_funding_txo();
59425942
let mon_update_blocked = if let Some(funding_txo) = funding_txo_opt {
5943-
self.pending_events.lock().unwrap().iter().any(|(_, action)| {
5944-
action == &Some(EventCompletionAction::ReleaseRAAChannelMonitorUpdate {
5945-
channel_funding_outpoint: funding_txo,
5946-
counterparty_node_id: *counterparty_node_id,
5947-
})
5948-
})
5943+
self.raa_monitor_updates_held(
5944+
&peer_state.actions_blocking_raa_monitor_updates, funding_txo,
5945+
*counterparty_node_id)
59495946
} else { false };
59505947
let (htlcs_to_fail, monitor_update_opt) = try_chan_entry!(self,
59515948
chan.get_mut().revoke_and_ack(&msg, &self.fee_estimator, &self.logger, mon_update_blocked), chan);

0 commit comments

Comments
 (0)