Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tapdb: fix migration 15 #784

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

guggero
Copy link
Member

@guggero guggero commented Feb 6, 2024

We assumed nobody would have multiple witness entries at this point, as they could only be produced when using the vPSBT API. But a user reported problems when running the migration 15 which indicates they indeed had multiple witnesses per asset (possibly due to multiple imports of the same proof which would be a whole separate issue and likely needs to be fixed in their DB manually).

This commit makes sure we insert a non-duplicate default value (we just pick the witness ID as we just care about the order not the actual value).

We assumed nobody would have multiple witness entries at this point, as
they could only be produced when using the vPSBT API. But a user
reported problems when running the migration 15 which indicates they
indeed had multiple witnesses per asset (possibly due to multiple
imports of the same proof which would be a whole separate issue and
likely needs to be fixed in their DB manually).

This commit makes sure we insert a non-duplicate default value (we just
pick the witness ID as we just care about the order not the actual
value).
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🦖

Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐍

@Roasbeef Roasbeef merged commit a6415f8 into lightninglabs:main Feb 6, 2024
14 checks passed
@guggero guggero deleted the fix-asset-witness branch February 6, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants