Skip to content

[Backport v0.17.x] fix(mint): clean finalized swap sagas during recovery#2212

Closed
cdk-bot wants to merge 1 commit into
v0.17.xfrom
backport-2188-to-v0.17.x
Closed

[Backport v0.17.x] fix(mint): clean finalized swap sagas during recovery#2212
cdk-bot wants to merge 1 commit into
v0.17.xfrom
backport-2188-to-v0.17.x

Conversation

@cdk-bot

@cdk-bot cdk-bot commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Description

Backport of #2188 to v0.17.x.

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.

(cherry picked from commit d84ef27)
@github-project-automation github-project-automation Bot moved this to Backlog in CDK Jul 8, 2026
@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.

2 participants