From 867e0f3f9496f3deba8325e79e71d27f083e1421 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 22 Nov 2024 01:53:05 +0000 Subject: [PATCH] Note how to make results reproducible --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.rs b/src/main.rs index 2a415f1..d16b168 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,6 +29,9 @@ pub fn do_setup<'a>(graph: &'a NetworkGraph) -> State { /// The network graph as it existed at `result.timestamp` is provided, as well as a reference to /// the current state. pub fn process_probe_result(network_graph: ReadOnlyNetworkGraph, result: ProbeResult, state: &mut State) { + // Note that the dataset will be regularly updated. If you wish your results to be + // reproducible, you should add an early return here at some cutoff timestamp. + // Update the model's time use lightning::routing::scoring::ScoreUpdate; let cur_time = std::time::Duration::from_secs(result.timestamp); -- 2.39.5