projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename EffectiveCapacity::MaximumHTLC to ::AdvertisedMaxHTLC
[rust-lightning]
/
lightning
/
src
/
routing
/
scoring.rs
diff --git
a/lightning/src/routing/scoring.rs
b/lightning/src/routing/scoring.rs
index 235b1a148a5824ad020cf88dc3fc652679e3ba1f..2ffb3251b9fb2e36ffc82408940ce57f3a7a3ca6 100644
(file)
--- a/
lightning/src/routing/scoring.rs
+++ b/
lightning/src/routing/scoring.rs
@@
-2869,7
+2869,7
@@
mod tests {
let usage = ChannelUsage {
amount_msat: 1,
inflight_htlc_msat: 0,
let usage = ChannelUsage {
amount_msat: 1,
inflight_htlc_msat: 0,
- effective_capacity: EffectiveCapacity::
Maximum
HTLC { amount_msat: 0 },
+ effective_capacity: EffectiveCapacity::
AdvertisedMax
HTLC { amount_msat: 0 },
};
assert_eq!(scorer.channel_penalty_msat(42, &target, &source, usage, ¶ms), 2048);
};
assert_eq!(scorer.channel_penalty_msat(42, &target, &source, usage, ¶ms), 2048);