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

add(test): Add serialized NU5 blocks to test vectors #9098

Merged
merged 34 commits into from
Jan 15, 2025
Merged

add(test): Add serialized NU5 blocks to test vectors #9098

merged 34 commits into from
Jan 15, 2025

Conversation

upbqdn
Copy link
Member

@upbqdn upbqdn commented Dec 21, 2024

Motivation

Close #2409, #9090 and #9088.

Solution

Tests

  • Remove unneeded test for fake V5 txs.
  • Use real V5 txs where appropriate. This uncovered some malfunctioning tests, for example 34e985b.
  • Fix failing tests. This turned out to be much more work than I expected.
  • Use Network::iter instead of only Mainnet txs.

Follow-up Work

PR Author's Checklist

  • The PR name will make sense to users.
  • The PR provides a CHANGELOG summary.
  • The solution is tested.
  • The documentation is up to date.
  • The PR has a priority label.

PR Reviewer's Checklist

  • The PR Author's checklist is complete.
  • The PR resolves the issue.

@upbqdn upbqdn added C-testing Category: These are tests P-Medium ⚡ labels Dec 21, 2024
@upbqdn upbqdn self-assigned this Dec 21, 2024
@upbqdn upbqdn requested a review from oxarbitrage December 21, 2024 00:32
@github-actions github-actions bot added the C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG label Dec 21, 2024
@upbqdn upbqdn removed the C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG label Dec 21, 2024
@github-actions github-actions bot added the C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG label Dec 21, 2024
@upbqdn upbqdn removed the C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG label Dec 21, 2024
@mpguerra mpguerra requested review from arya2 and removed request for oxarbitrage January 8, 2025 15:12
arya2
arya2 previously approved these changes Jan 11, 2025
Copy link
Contributor

@arya2 arya2 left a comment

Choose a reason for hiding this comment

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

This looks great, thank you for these changes.

I left a few suggestions, none of them are blockers if you'd like this to merge as-is.

zebra-consensus/src/transaction/tests.rs Show resolved Hide resolved
zebra-consensus/src/transaction/tests.rs Outdated Show resolved Hide resolved
zebra-consensus/src/transaction/tests.rs Outdated Show resolved Hide resolved
zebra-consensus/src/transaction/tests.rs Outdated Show resolved Hide resolved
zebra-test/src/vectors/block.rs Show resolved Hide resolved
@github-actions github-actions bot added the C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG label Jan 13, 2025
@arya2
Copy link
Contributor

arya2 commented Jan 15, 2025

@Mergifyio update

Copy link
Contributor

mergify bot commented Jan 15, 2025

update

✅ Branch has been successfully updated

mergify bot added a commit that referenced this pull request Jan 15, 2025
@mergify mergify bot merged commit 82c23f3 into main Jan 15, 2025
162 checks passed
@mergify mergify bot deleted the add-v5-txs branch January 15, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-testing Category: These are tests C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG P-Medium ⚡
Projects
None yet
2 participants