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=74d738427baedd7139fc544f8decb17f092994f5;p=ln-routing-replay Note how to make results reproducible --- diff --git a/src/main.rs b/src/main.rs index abf059b..6a5653a 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);