]> git.bitcoin.ninja Git - ln-routing-replay/commitdiff
Note how to make results reproducible
authorMatt Corallo <git@bluematt.me>
Fri, 22 Nov 2024 01:53:05 +0000 (01:53 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 22 Nov 2024 01:53:05 +0000 (01:53 +0000)
src/main.rs

index abf059bf4a1fbbd2ab3599e46356ba6446ef95c5..6a5653ad4ac2080f45a4df8a4b2dd9c335ff0fe3 100644 (file)
@@ -29,6 +29,9 @@ pub fn do_setup<'a>(graph: &'a NetworkGraph<DevNullLogger>) -> 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);