Skip to content

Sqlite - allow persisting anchor without tx#1736

Merged
evanlinjin merged 4 commits intobitcoindevkit:masterfrom
evanlinjin:fix/sqlite-insert-anchor-before-tx
Nov 28, 2024
Merged

Sqlite - allow persisting anchor without tx#1736
evanlinjin merged 4 commits intobitcoindevkit:masterfrom
evanlinjin:fix/sqlite-insert-anchor-before-tx

Conversation

@evanlinjin
Copy link
Copy Markdown
Member

@evanlinjin evanlinjin commented Nov 20, 2024

Description

Previously, we may error when we insert an anchor where the txid being anchored has no corresponding tx.

closes #1712
replaces #961

Notes to the reviewers

Changelog notice

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

@evanlinjin
Copy link
Copy Markdown
Member Author

@ValuedMammal feel free to take this one over. I'm assuming this will fix the problem, but needs tests.

@notmandatory
Copy link
Copy Markdown
Member

Tests from #961 could be useful.

@notmandatory notmandatory added module-database audit Suggested as result of external code audit labels Nov 21, 2024
@notmandatory notmandatory added this to the 1.0.0-beta milestone Nov 21, 2024
@ValuedMammal ValuedMammal force-pushed the fix/sqlite-insert-anchor-before-tx branch from 0aa1f24 to 4a71cf4 Compare November 25, 2024 01:57
@ValuedMammal ValuedMammal marked this pull request as ready for review November 25, 2024 02:05
@evanlinjin evanlinjin force-pushed the fix/sqlite-insert-anchor-before-tx branch from 4a71cf4 to 18f5f3f Compare November 25, 2024 23:30
@evanlinjin
Copy link
Copy Markdown
Member Author

@ValuedMammal I forced pushed to rebase on master.

Copy link
Copy Markdown
Member Author

@evanlinjin evanlinjin left a comment

Choose a reason for hiding this comment

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

ACK 18f5f3f

Copy link
Copy Markdown
Collaborator

@ValuedMammal ValuedMammal left a comment

Choose a reason for hiding this comment

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

ACK 18f5f3f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit Suggested as result of external code audit module-database

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Sqlite: check anchor to tx foreign key constraint

3 participants