Skip to content

Commit 557582d

Browse files
committed
Use the new load_existing_channel over watch_channel
Now that we have `ChainMonitor::load_existing_channel` we can use it during startup to avoid the excess persistence at startup.
1 parent c52e4e7 commit 557582d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ async fn start_ldk() {
838838
for (_, (channel_monitor, _, _, _), _) in chain_listener_channel_monitors {
839839
let channel_id = channel_monitor.channel_id();
840840
assert_eq!(
841-
chain_monitor.watch_channel(channel_id, channel_monitor),
841+
chain_monitor.load_existing_channel(channel_id, channel_monitor),
842842
Ok(ChannelMonitorUpdateStatus::Completed)
843843
);
844844
}

0 commit comments

Comments
 (0)