We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
if
1 parent 6e1ab15 commit e6f7455Copy full SHA for e6f7455
lightning-invoice/src/payment.rs
@@ -595,11 +595,8 @@ where
595
// hop and then drop the event instead of handing it up to the user's event
596
// handler.
597
if self.payer.payment_is_probe(*payment_hash, *payment_id) {
598
- if *rejected_by_dest {
599
- self.scorer.lock().payment_path_failed(&path, u64::max_value());
600
- } else {
601
- self.scorer.lock().payment_path_failed(&path, *short_channel_id);
602
- }
+ let scid = if *rejected_by_dest { u64::max_value() } else { *short_channel_id };
+ self.scorer.lock().payment_path_failed(&path, scid);
603
return;
604
}
605
0 commit comments