Skip to content

Commit 4c5fb67

Browse files
committed
Use the new load_existing_monitor over watch_channel
Now that we have `ChainMonitor::load_existing_monitor` we can use it during startup to avoid the excess persistence at startup.
1 parent 2ec3d27 commit 4c5fb67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ async fn start_ldk() {
871871
for (_, (channel_monitor, _, _, _), _) in chain_listener_channel_monitors {
872872
let channel_id = channel_monitor.channel_id();
873873
assert_eq!(
874-
chain_monitor.watch_channel(channel_id, channel_monitor),
874+
chain_monitor.load_existing_monitor(channel_id, channel_monitor),
875875
Ok(ChannelMonitorUpdateStatus::Completed)
876876
);
877877
}

0 commit comments

Comments
 (0)