Skip to content

Commit ad2eb95

Browse files
f test comment and check
1 parent f4115d8 commit ad2eb95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/routing/scoring.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2908,9 +2908,11 @@ mod tests {
29082908
final_value_msat: recipient_hop.fee_msat,
29092909
});
29102910

2911+
// More knowledge gives higher confidence (256, 768), meaning a lower penalty.
29112912
scorer.payment_path_failed(&path, 42);
29122913
path.blinded_tail.as_mut().unwrap().final_value_msat = 256;
29132914
scorer.payment_path_failed(&path, 43);
29142915
assert_eq!(scorer.channel_penalty_msat(42, &source, &target, usage), 281);
2916+
assert_eq!(scorer.channel_penalty_msat(43, &source, &target, usage), 300);
29152917
}
29162918
}

0 commit comments

Comments
 (0)