mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 06:57:53 +01:00
Fix typo in ScorerAccountingForInFlightHtlcs
This commit is contained in:
parent
685b370694
commit
5f49011c44
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue