Skip to content

fix(asb): Bobs sqlite migration would cause Alice to fail with assertion#942

Merged
binarybaron merged 1 commit intomasterfrom
fix/broken-migr
Apr 1, 2026
Merged

fix(asb): Bobs sqlite migration would cause Alice to fail with assertion#942
binarybaron merged 1 commit intomasterfrom
fix/broken-migr

Conversation

@binarybaron
Copy link
Copy Markdown

@binarybaron binarybaron commented Apr 1, 2026

Note

Medium Risk
Touches SQLite migration logic for swap_states JSON, so a mistake could corrupt or fail database startup, but the change is narrowly scoped to filtering and remains idempotent via json_insert.

Overview
Fixes an ASB startup failure caused by a previous SQLite migration that accidentally matched Alice state JSON when searching for xmr keys.

Adds a v2 migration that only targets rows with $.Bob present before inserting tx_punish_fee/punish_address, and updates the changelog to note the ASB migration-startup fix.

Written by Cursor Bugbot for commit b698b8e. This will update automatically on new commits. Configure here.

…tion

The migration used json_tree to find objects with an "xmr" key, but this
also matched Alice states (which have xmr in state3). Added an explicit
Bob-only filter to the target query.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@binarybaron binarybaron merged commit f75c9e3 into master Apr 1, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant