projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prefetch per-direction channel info before looking at the channel
[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 1502021844574412c3b4364375da997f24be41da..1212be261906aaddb8d251b7a314d682a60cab03 100644
(file)
--- 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,
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;
};
scorer.channel_penalty_msat(&candidate, usage, &());
continue;
@@
-172,6
+174,8
@@
impl<'a> Router for TestRouter<'a> {
let candidate = CandidateRouteHop::PrivateHop {
hint: &route_hint,
target_node_id: &target_node_id,
let candidate = CandidateRouteHop::PrivateHop {
hint: &route_hint,
target_node_id: &target_node_id,
+ source_node_counter: u32::max_value(),
+ target_node_counter: u32::max_value(),
};
scorer.channel_penalty_msat(&candidate, usage, &());
}
};
scorer.channel_penalty_msat(&candidate, usage, &());
}