From: Matt Corallo Date: Fri, 22 Nov 2024 01:53:05 +0000 (+0000) Subject: Note how to make results reproducible X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=867e0f3f9496f3deba8325e79e71d27f083e1421;p=ln-routing-replay Note how to make results reproducible --- 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);