File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -505,11 +505,8 @@ where
505
505
amount_msat,
506
506
) ;
507
507
let payment_preimage = match purpose {
508
- PaymentPurpose :: Bolt11InvoicePayment { payment_preimage, payment_secret } => {
509
- payment_preimage. or ( self
510
- . channel_manager
511
- . get_payment_preimage ( payment_hash, payment_secret)
512
- . ok ( ) )
508
+ PaymentPurpose :: Bolt11InvoicePayment { payment_preimage, .. } => {
509
+ payment_preimage
513
510
} ,
514
511
PaymentPurpose :: Bolt12OfferPayment {
515
512
payment_preimage,
@@ -551,10 +548,7 @@ where
551
548
debug_assert ! ( false ) ;
552
549
} ,
553
550
}
554
- payment_preimage. or ( self
555
- . channel_manager
556
- . get_payment_preimage ( payment_hash, payment_secret)
557
- . ok ( ) )
551
+ payment_preimage
558
552
} ,
559
553
PaymentPurpose :: Bolt12RefundPayment {
560
554
payment_preimage,
@@ -592,10 +586,7 @@ where
592
586
debug_assert ! ( false ) ;
593
587
} ,
594
588
}
595
- payment_preimage. or ( self
596
- . channel_manager
597
- . get_payment_preimage ( payment_hash, payment_secret)
598
- . ok ( ) )
589
+ payment_preimage
599
590
} ,
600
591
PaymentPurpose :: SpontaneousPayment ( preimage) => {
601
592
// Since it's spontaneous, we insert it now into our store.
You can’t perform that action at this time.
0 commit comments