Add ln send spend state
- check or remove this line after you've added a CHANGELOG entry or if your PR doesn't need one (they should go into
CHANGELOG/unreleased/)
Summary by CodeRabbit
-
New Features
- Improved Lightning payment handling to track HTLC-send VTXOs through payment attempts, including a new persisted spend state for Lightning-spent outputs.
- Extended client responses to treat the new Lightning-spent state as “spent” consistently.
-
Chores
- Added database support for linking payment attempts to HTLC-send VTXOs and introduced the new spend-state enum value.
- Refactored internal payment-attempt processing to use a unified handler for status transitions.
-
Tests
- Updated Lightning payment attempt tests to match the revised persistence inputs.
Edited by coderabbit