You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rename Channel's latest-monitor-update fetch method for clarity
`Channel::get_latest_complete_monitor_update_id` no longer refers
to complete updates, but rather ones which were passed to the
`ChannelManager` and which the `CHannel` no longer knows about.
Thus, we rename it `get_latest_unblocked_monitor_update_id`.
Copy file name to clipboardExpand all lines: lightning/src/ln/channelmanager.rs
+2-2
Original file line number
Diff line number
Diff line change
@@ -8441,12 +8441,12 @@ where
8441
8441
funding_txo, monitor, peer_state,""));
8442
8442
}
8443
8443
}
8444
-
if chan.get_latest_complete_monitor_update_id() > max_in_flight_update_id {
8444
+
if chan.get_latest_unblocked_monitor_update_id() > max_in_flight_update_id {
8445
8445
// If the channel is ahead of the monitor, return InvalidValue:
8446
8446
log_error!(args.logger,"A ChannelMonitor is stale compared to the current ChannelManager! This indicates a potentially-critical violation of the chain::Watch API!");
8447
8447
log_error!(args.logger," The ChannelMonitor for channel {} is at update_id {} with update_id through {} in-flight",
0 commit comments