X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Ftest_utils.rs;h=1212be261906aaddb8d251b7a314d682a60cab03;hb=b530cdc25227acf512b6cf32ac4fcf815c67dff9;hp=1ae28b40e371d1122528305881f57f9e3a813daa;hpb=2b7d097dc76805a814eef93b4610a9eebc68e20e;p=rust-lightning diff --git a/lightning/src/util/test_utils.rs b/lightning/src/util/test_utils.rs index 1ae28b40e..1212be261 100644 --- a/lightning/src/util/test_utils.rs +++ b/lightning/src/util/test_utils.rs @@ -145,6 +145,8 @@ impl<'a> Router for TestRouter<'a> { let candidate = CandidateRouteHop::FirstHop { details: first_hops[idx], payer_node_id: &node_id, + payer_node_counter: u32::max_value(), + target_node_counter: u32::max_value(), }; scorer.channel_penalty_msat(&candidate, usage, &()); continue; @@ -171,7 +173,9 @@ impl<'a> Router for TestRouter<'a> { }; let candidate = CandidateRouteHop::PrivateHop { hint: &route_hint, - target_node_id: target_node_id, + target_node_id: &target_node_id, + source_node_counter: u32::max_value(), + target_node_counter: u32::max_value(), }; scorer.channel_penalty_msat(&candidate, usage, &()); } @@ -1349,13 +1353,15 @@ impl ScoreLookUp for TestScorer { } impl ScoreUpdate for TestScorer { - fn payment_path_failed(&mut self, _actual_path: &Path, _actual_short_channel_id: u64) {} + fn payment_path_failed(&mut self, _actual_path: &Path, _actual_short_channel_id: u64, _duration_since_epoch: Duration) {} - fn payment_path_successful(&mut self, _actual_path: &Path) {} + fn payment_path_successful(&mut self, _actual_path: &Path, _duration_since_epoch: Duration) {} - fn probe_failed(&mut self, _actual_path: &Path, _: u64) {} + fn probe_failed(&mut self, _actual_path: &Path, _: u64, _duration_since_epoch: Duration) {} - fn probe_successful(&mut self, _actual_path: &Path) {} + fn probe_successful(&mut self, _actual_path: &Path, _duration_since_epoch: Duration) {} + + fn decay_liquidity_certainty(&mut self, _duration_since_epoch: Duration) {} } impl Drop for TestScorer {