]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix typo in ScorerAccountingForInFlightHtlcs
authorValentine Wallace <vwallace@protonmail.com>
Thu, 17 Nov 2022 02:29:10 +0000 (21:29 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 29 Nov 2022 17:52:29 +0000 (12:52 -0500)
lightning-invoice/src/utils.rs

index 4822fe32ace76d4b30fe289647035919e603cc45..0d4c4b5fee54c58ab17218ac85780712e19e3924 100644 (file)
@@ -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
                        };