bark: catch up recovery state on every wallet opening

  • 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

    • Wallet synchronization now performs a best-effort recovery catch-up, including for exited VTXOs that haven’t reached recovery yet.
    • Successful recovery registrations are recorded so later syncs skip already-registered VTXOs (with a persistent flag).
    • Recovery registration updates are retried in smaller chunks for improved resilience.
  • Bug Fixes

    • Duplicate VTXOs/registration entries are handled idempotently, and validation/reporting is more complete for missing VTXOs.
    • Previously spent VTXOs are no longer unintentionally restored.
  • Tests

    • Added integration coverage for recovery catch-up behavior and idempotency in server/database storage paths.
Edited by coderabbit

Merge request reports

Loading