From: Valentine Wallace Date: Thu, 17 Nov 2022 02:29:10 +0000 (-0500) Subject: Fix typo in ScorerAccountingForInFlightHtlcs X-Git-Tag: v0.0.113~21^2~2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5f49011c444fb80f2c68921d59c7cf5cb349e153;p=rust-lightning Fix typo in ScorerAccountingForInFlightHtlcs --- 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 };