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

Sqlite - allow persisting anchor without tx #1736

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

evanlinjin
Copy link
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
Member Author

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

@notmandatory
Copy link
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
Member Author

@ValuedMammal I forced pushed to rebase on master.

Copy link
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
Contributor

@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
Status: Needs Review
Development

Successfully merging this pull request may close these issues.

Sqlite: check anchor to tx foreign key constraint
3 participants