projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use `Duration` based time info in scoring rather than `Time`
[rust-lightning]
/
lightning
/
src
/
util
/
test_utils.rs
diff --git
a/lightning/src/util/test_utils.rs
b/lightning/src/util/test_utils.rs
index 1ae28b40e371d1122528305881f57f9e3a813daa..1502021844574412c3b4364375da997f24be41da 100644
(file)
--- a/
lightning/src/util/test_utils.rs
+++ b/
lightning/src/util/test_utils.rs
@@
-171,7
+171,7
@@
impl<'a> Router for TestRouter<'a> {
};
let candidate = CandidateRouteHop::PrivateHop {
hint: &route_hint,
};
let candidate = CandidateRouteHop::PrivateHop {
hint: &route_hint,
- target_node_id: target_node_id,
+ target_node_id:
&
target_node_id,
};
scorer.channel_penalty_msat(&candidate, usage, &());
}
};
scorer.channel_penalty_msat(&candidate, usage, &());
}
@@
-1349,13
+1349,15
@@
impl ScoreLookUp for TestScorer {
}
impl ScoreUpdate 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 {
}
impl Drop for TestScorer {