Skip to content

Commit 59f8add

Browse files
committed
f update to struct enum variant
1 parent 28800bb commit 59f8add

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
@@ -8000,13 +8000,14 @@ where
80008000
for (node_id, peer_mtx) in per_peer_state.iter() {
80018001
let peer_state = peer_mtx.lock().unwrap();
80028002
for (_, chan) in peer_state.channel_by_id.iter() {
8003-
for monitor_update in chan.uncompleted_unblocked_mon_updates() {
8004-
if let Some(funding_outpoint) = chan.get_funding_txo() {
8003+
for update in chan.uncompleted_unblocked_mon_updates() {
8004+
if let Some(funding_txo) = chan.get_funding_txo() {
80058005
log_trace!(args.logger, "Replaying ChannelMonitorUpdate {} for channel {}",
8006-
monitor_update.update_id, log_bytes!(funding_outpoint.to_channel_id()));
8006+
update.update_id, log_bytes!(funding_txo.to_channel_id()));
80078007
pending_background_events.push(
8008-
BackgroundEvent::MonitorUpdateRegeneratedOnStartup(
8009-
(*node_id, funding_outpoint, monitor_update.clone())));
8008+
BackgroundEvent::MonitorUpdateRegeneratedOnStartup {
8009+
counterparty_node_id: *node_id, funding_txo, update: update.clone(),
8010+
});
80108011
} else {
80118012
return Err(DecodeError::InvalidValue);
80128013
}

0 commit comments

Comments
 (0)