bark, bark-rest: Add ExitState::Canceled variant
- 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/)
Some necessary refactors included here like not keeping every exit in memory.
Summary by CodeRabbit
-
New Features
- Added exit cancellation support for in-progress unilateral exits.
- Added a new option to list finished exits alongside live ones.
- Exits can now be queried as either live or finished, with clearer status visibility.
-
Bug Fixes
- Canceling an exit now leaves the VTXO spendable for later use.
- Finished exits are no longer mixed into the default exit list.
-
Breaking Changes
- Exit status results now include a canceled state and new cancellation-related error responses.
Edited by coderabbit