Skip to content

Commit 668a744

Browse files
committed
Persist scorer before network graph
1 parent 8d7f74e commit 668a744

File tree

1 file changed

+5
-5
lines changed
  • lightning-background-processor/src

1 file changed

+5
-5
lines changed

lightning-background-processor/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -281,16 +281,16 @@ impl BackgroundProcessor {
281281
// ChannelMonitor update(s) persisted without a corresponding ChannelManager update.
282282
persister.persist_manager(&*channel_manager)?;
283283

284-
// Persist NetworkGraph on exit
285-
if let Some(ref handler) = net_graph_msg_handler {
286-
persister.persist_graph(handler.network_graph())?;
287-
}
288-
289284
// Persist Scorer on exit
290285
if let Some(ref scorer) = scorer {
291286
persister.persist_scorer(&scorer)?;
292287
}
293288

289+
// Persist NetworkGraph on exit
290+
if let Some(ref handler) = net_graph_msg_handler {
291+
persister.persist_graph(handler.network_graph())?;
292+
}
293+
294294
Ok(())
295295
});
296296
Self { stop_thread: stop_thread_clone, thread_handle: Some(handle) }

0 commit comments

Comments
 (0)