Commit 356ce16
talgya
Don't panic when a same-mint melt settles without a preimage
When a melt's bolt11 destination is a mint quote on the same mint,
cdk-mintd settles it internally — no Lightning payment occurs and the
melt result legitimately carries no payment_proof. The success path
already tolerates a missing preimage (the event hash falls back to the
invoice payment_hash), but the None arm carried a debug_assert!(false)
that panics any debug build the moment two wallets sharing a mint pay
each other.
Downgrade to an explanatory log_info; fixes #91.1 parent a88420d commit 356ce16
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
738 | 740 | | |
739 | | - | |
| 741 | + | |
740 | 742 | | |
741 | | - | |
| 743 | + | |
742 | 744 | | |
743 | 745 | | |
744 | 746 | | |
| |||
0 commit comments