Commit 3bd94d6
Re-claim inbound payments when preimage is already known
When a PaymentClaimable event arrives for a payment already marked as
Succeeded or Spontaneous in the payment store, re-claim using the
stored preimage instead of failing the HTLC backwards. This prevents
fund loss in scenarios where the channel monitor state was not yet
persisted (e.g. with deferred monitor writes) but the payment store
already recorded the claim as successful.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 09858b8 commit 3bd94d6
1 file changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
691 | 691 | | |
692 | 692 | | |
693 | 693 | | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
694 | 714 | | |
695 | 715 | | |
696 | 716 | | |
| |||
0 commit comments