]> 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 14:14:30 +0000 (14:14 +0000)
src/main.rs

index 2a415f1fe8cc589dd1ab156a0a05a2c1bada2661..d16b168c435de5f83bc97c8776bd4901c6ec2b0f 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);