File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
lightning-background-processor/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,11 @@ impl BackgroundProcessor {
215215
216216 let mut last_freshness_call = Instant :: now ( ) ;
217217 let mut last_ping_call = Instant :: now ( ) ;
218- let mut last_prune_call = Instant :: now ( ) ;
218+ // Note that we want to run a graph prune once not long after startup before falling
219+ // back to our usual hourly prunes. This avoids short-lived clients never pruning their
220+ // network graph. We default here to once a minute after startup.
221+ let mut last_prune_call = Instant :: now ( ) + Duration :: from_secs ( 60 ) - Duration :: from_secs ( NETWORK_PRUNE_TIMER ) ;
222+
219223 loop {
220224 peer_manager. process_events ( ) ;
221225 channel_manager. process_pending_events ( & event_handler) ;
You can’t perform that action at this time.
0 commit comments