Skip to content

Commit 1256bba

Browse files
committed
f update to struct enum variant
1 parent 1b93e9b commit 1256bba

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
@@ -8003,13 +8003,14 @@ where
80038003
for (node_id, peer_mtx) in per_peer_state.iter() {
80048004
let peer_state = peer_mtx.lock().unwrap();
80058005
for (_, chan) in peer_state.channel_by_id.iter() {
8006-
for monitor_update in chan.uncompleted_unblocked_mon_updates() {
8007-
if let Some(funding_outpoint) = chan.get_funding_txo() {
8006+
for update in chan.uncompleted_unblocked_mon_updates() {
8007+
if let Some(funding_txo) = chan.get_funding_txo() {
80088008
log_trace!(args.logger, "Replaying ChannelMonitorUpdate {} for channel {}",
8009-
monitor_update.update_id, log_bytes!(funding_outpoint.to_channel_id()));
8009+
update.update_id, log_bytes!(funding_txo.to_channel_id()));
80108010
pending_background_events.push(
8011-
BackgroundEvent::MonitorUpdateRegeneratedOnStartup(
8012-
(*node_id, funding_outpoint, monitor_update.clone())));
8011+
BackgroundEvent::MonitorUpdateRegeneratedOnStartup {
8012+
counterparty_node_id: *node_id, funding_txo, update: update.clone(),
8013+
});
80138014
} else {
80148015
return Err(DecodeError::InvalidValue);
80158016
}

0 commit comments

Comments
 (0)