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

chore(chain)!: use debug_assert! on apply_update #1734

Conversation

oleonardolima
Copy link
Contributor

fixes #1689

Description

As mentioned in issue #1689 the debug_assert! is being used on other LocalChain methods, such as: from_changeset, and apply_changeset but it was missing on apply_update.

Notes to the reviewers

Changelog notice

  • Add usage of debug_assert!() to LocalChain::apply_update.

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

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature. The key has expired.
oleonardolima Leonardo L.
As mentioned in issue bitcoindevkit#1689 the `debug_assert!` is being used on other
`LocalChain` methods, such as: `from_changeset`, and `apply_changeset`
but it was missing on `apply_update`.
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 2ec5aa4 Thank you @oleonardolima

@notmandatory notmandatory added module-blockchain 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
Copy link
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

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

ACK 2ec5aa4

@notmandatory
Copy link
Member

oops I closed the wrong PR.

@notmandatory notmandatory merged commit 03c7368 into bitcoindevkit:master Nov 22, 2024
41 checks passed
@oleonardolima oleonardolima deleted the chore/use-debug-assert-on-apply-update branch December 2, 2024 22:08
@notmandatory notmandatory mentioned this pull request Dec 12, 2024
32 tasks
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-blockchain
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add debug_assert in LocalChain::apply_update
3 participants