From 5f49011c444fb80f2c68921d59c7cf5cb349e153 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Wed, 16 Nov 2022 21:29:10 -0500 Subject: [PATCH] Fix typo in ScorerAccountingForInFlightHtlcs --- lightning-invoice/src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning-invoice/src/utils.rs b/lightning-invoice/src/utils.rs index 4822fe32a..0d4c4b5fe 100644 --- a/lightning-invoice/src/utils.rs +++ b/lightning-invoice/src/utils.rs @@ -651,11 +651,11 @@ impl<'a, S:Score> lightning::util::ser::Writeable for ScorerAccountingForInFligh impl<'a, S: Score> Score for ScorerAccountingForInFlightHtlcs<'a, S> { fn channel_penalty_msat(&self, short_channel_id: u64, source: &NodeId, target: &NodeId, usage: ChannelUsage) -> u64 { - if let Some(used_liqudity) = self.inflight_htlcs.used_liquidity_msat( + if let Some(used_liquidity) = self.inflight_htlcs.used_liquidity_msat( source, target, short_channel_id ) { let usage = ChannelUsage { - inflight_htlc_msat: usage.inflight_htlc_msat + used_liqudity, + inflight_htlc_msat: usage.inflight_htlc_msat + used_liquidity, ..usage }; -- 2.39.5