Skip to content

Commit 80a1745

Browse files
authored
Merge pull request #744 from TheBlueMatt/2026-01-no-resilver
Avoid resilvering `ChannelMonitor`s on startup
2 parents 585655f + f3bbd4a commit 80a1745

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,8 +1438,8 @@ fn build_with_store_internal(
14381438
// Give ChannelMonitors to ChainMonitor
14391439
for (_blockhash, channel_monitor) in channel_monitors.into_iter() {
14401440
let channel_id = channel_monitor.channel_id();
1441-
chain_monitor.watch_channel(channel_id, channel_monitor).map_err(|e| {
1442-
log_error!(logger, "Failed to watch channel monitor: {:?}", e);
1441+
chain_monitor.load_existing_monitor(channel_id, channel_monitor).map_err(|e| {
1442+
log_error!(logger, "Failed to load channel monitor: {:?}", e);
14431443
BuildError::InvalidChannelMonitor
14441444
})?;
14451445
}

0 commit comments

Comments
 (0)