Commit bbbcae7
committed
fix(wallet): persist payment_proof when transitioning melt quote state
The wallet's update_melt_quote_state() was receiving the payment_proof
parameter and forwarding it to add_transaction_for_pending_melt() but never
writing it to the persisted quote record. As a result, the proof (lightning
preimage / onchain outpoint) was never visible on the quote itself after a
successful melt, only in the transaction log.
Assign payment_proof to quote.payment_proof before persistence, and carry it
through the ConcurrentUpdate retry path.1 parent 80e6352 commit bbbcae7
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
| 967 | + | |
967 | 968 | | |
968 | 969 | | |
969 | 970 | | |
| |||
980 | 981 | | |
981 | 982 | | |
982 | 983 | | |
| 984 | + | |
983 | 985 | | |
984 | 986 | | |
985 | 987 | | |
| |||
0 commit comments