Commit 8947331
committed
Stop pre-creating
Remove the eager `PaymentStore` insertions from `receive_inner` and
`receive_via_jit_channel_inner`. Inbound payment entries will instead
be created on demand by the `EventHandler` when the corresponding LDK
events arrive.
Outbound payment entries (created by `send` / `send_using_amount`) are
kept as before so the sender always has a store record immediately after
initiating a payment.
Generated with the assistance of AI tools.
Co-Authored-By: HAL 9000PaymentStore entries in Bolt11Payment receive methods1 parent 7843a8d commit 8947331
1 file changed
+1
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | 515 | | |
546 | 516 | | |
547 | 517 | | |
| |||
729 | 699 | | |
730 | 700 | | |
731 | 701 | | |
732 | | - | |
| 702 | + | |
733 | 703 | | |
734 | | - | |
735 | 704 | | |
736 | 705 | | |
737 | 706 | | |
738 | 707 | | |
739 | 708 | | |
740 | | - | |
741 | | - | |
742 | 709 | | |
743 | 710 | | |
744 | 711 | | |
| |||
747 | 714 | | |
748 | 715 | | |
749 | 716 | | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | 717 | | |
770 | 718 | | |
771 | 719 | | |
| |||
0 commit comments