Skip to content

Commit a626828

Browse files
authored
Merge pull request #1649 from dunxen/2022-08-implementnodefailure
Implement permanent node failure handling
2 parents 2fda791 + 63d7b2b commit a626828

File tree

2 files changed

+269
-27
lines changed

2 files changed

+269
-27
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ use futures::{select, future::FutureExt};
4646
/// [`ChannelManager`] persistence should be done in the background.
4747
/// * Calling [`ChannelManager::timer_tick_occurred`] and [`PeerManager::timer_tick_occurred`]
4848
/// at the appropriate intervals.
49-
/// * Calling [`NetworkGraph::remove_stale_channels`] (if a [`GossipSync`] with a [`NetworkGraph`]
50-
/// is provided to [`BackgroundProcessor::start`]).
49+
/// * Calling [`NetworkGraph::remove_stale_channels_and_tracking`] (if a [`GossipSync`] with a
50+
/// [`NetworkGraph`] is provided to [`BackgroundProcessor::start`]).
5151
///
5252
/// It will also call [`PeerManager::process_events`] periodically though this shouldn't be relied
5353
/// upon as doing so may result in high latency.
@@ -312,7 +312,7 @@ macro_rules! define_run_body {
312312
// The network graph must not be pruned while rapid sync completion is pending
313313
log_trace!($logger, "Assessing prunability of network graph");
314314
if let Some(network_graph) = $gossip_sync.prunable_network_graph() {
315-
network_graph.remove_stale_channels();
315+
network_graph.remove_stale_channels_and_tracking();
316316

317317
if let Err(e) = $persister.persist_graph(network_graph) {
318318
log_error!($logger, "Error: Failed to persist network graph, check your disk and permissions {}", e)

0 commit comments

Comments
 (0)