Skip to content

Commit 6db3715

Browse files
committed
f update to struct enum variant
1 parent 47eaad7 commit 6db3715

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7987,13 +7987,14 @@ where
79877987
for (node_id, peer_mtx) in per_peer_state.iter() {
79887988
let peer_state = peer_mtx.lock().unwrap();
79897989
for (_, chan) in peer_state.channel_by_id.iter() {
7990-
for monitor_update in chan.uncompleted_unblocked_mon_updates() {
7991-
if let Some(funding_outpoint) = chan.get_funding_txo() {
7990+
for update in chan.uncompleted_unblocked_mon_updates() {
7991+
if let Some(funding_txo) = chan.get_funding_txo() {
79927992
log_trace!(args.logger, "Replaying ChannelMonitorUpdate {} for channel {}",
7993-
monitor_update.update_id, log_bytes!(funding_outpoint.to_channel_id()));
7993+
update.update_id, log_bytes!(funding_txo.to_channel_id()));
79947994
pending_background_events.push(
7995-
BackgroundEvent::MonitorUpdateRegeneratedOnStartup(
7996-
(*node_id, funding_outpoint, monitor_update.clone())));
7995+
BackgroundEvent::MonitorUpdateRegeneratedOnStartup {
7996+
counterparty_node_id: *node_id, funding_txo, update: update.clone(),
7997+
});
79977998
} else {
79987999
return Err(DecodeError::InvalidValue);
79998000
}

0 commit comments

Comments
 (0)