Skip to content

Commit 6c427af

Browse files
committed
f Use paused rather than frozen for a channel during update
1 parent 23fa983 commit 6c427af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5039,12 +5039,12 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
50395039
if chan.get().get_counterparty_node_id() != *counterparty_node_id {
50405040
break Err(MsgHandleErrInternal::send_err_msg_no_close("Got a message for a channel from the wrong node!".to_owned(), msg.channel_id));
50415041
}
5042-
let was_frozen_for_monitor = chan.get().is_awaiting_monitor_update();
5042+
let was_paused_for_mon_update = chan.get().is_awaiting_monitor_update();
50435043
let raa_updates = break_chan_entry!(self,
50445044
chan.get_mut().revoke_and_ack(&msg, &self.logger), channel_state, chan);
50455045
htlcs_to_fail = raa_updates.holding_cell_failed_htlcs;
50465046
let update_res = self.chain_monitor.update_channel(chan.get().get_funding_txo().unwrap(), raa_updates.monitor_update);
5047-
if was_frozen_for_monitor {
5047+
if was_paused_for_mon_update {
50485048
assert!(update_res != ChannelMonitorUpdateStatus::Complete);
50495049
assert!(raa_updates.commitment_update.is_none());
50505050
assert!(raa_updates.accepted_htlcs.is_empty());

0 commit comments

Comments
 (0)