Skip to content

Backports for v0.17.3#2214

Merged
thesimplekid merged 3 commits into
cashubtc:v0.17.xfrom
thesimplekid:backports_for_v0.17.3
Jul 8, 2026
Merged

Backports for v0.17.3#2214
thesimplekid merged 3 commits into
cashubtc:v0.17.xfrom
thesimplekid:backports_for_v0.17.3

Conversation

@thesimplekid

Copy link
Copy Markdown
Collaborator

Description


backport of #2210, #2199, and #2188

closes: #2213 and #2211

Notes to the reviewers


Suggested CHANGELOG Updates

CHANGED

ADDED

REMOVED

FIXED


Checklist

  • I followed the code style guidelines
  • I ran just quick-check before committing
  • If the Wallet API was modified (added/removed/changed), I have reflected those changes in the FFI bindings (crates/cdk-ffi)

Map the internal 0 expiry sentinel back to None when converting Bolt12
mint quotes to API responses, matching the onchain conversion behavior.

Add regression coverage for direct and generic Bolt12 quote response paths.
NUT-17 notification payloads are ambiguous without the subscription
kind. Quote response shapes overlap and tolerate unknown fields, so
shape-based decoding can select the wrong payload variant.

Add a kind-aware payload decoder and use it in the wallet subscription
client while preserving the existing generic payload deserialization
surface for backports.

This prevents onchain and custom quote notifications from being decoded
as the wrong payload variant.
Detect swap sagas whose inputs are already spent and whose outputs are signed
before running setup compensation. Recovery deletes only the orphaned saga record
for those finalized swaps, avoiding repeated startup failures while preserving
spent proofs and signed outputs.

Add a regression test that reinserts a completed swap saga and verifies restart
cleanup leaves the finalized swap state intact.
@thesimplekid thesimplekid added this to the 0.17.3 milestone Jul 8, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in CDK Jul 8, 2026
@thesimplekid

Copy link
Copy Markdown
Collaborator Author

@cdk-bot review

@thesimplekid thesimplekid merged commit 346613d into cashubtc:v0.17.x Jul 8, 2026
13 of 50 checks passed
@thesimplekid thesimplekid deleted the backports_for_v0.17.3 branch July 8, 2026 09:48
@github-project-automation github-project-automation Bot moved this from Backlog to Done in CDK Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant