-
Notifications
You must be signed in to change notification settings - Fork 100
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
fix(test): Don't include shielded data in genesis blocks #7302
fix(test): Don't include shielded data in genesis blocks #7302
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Let's merge this into dedup-tree-insertion-fin-state
to fix those tests.
The disk format upgrade panicked here and possibly elsewhere:
can't upgrade a database that has already been upgraded, or is newer
https://github.com/ZcashFoundation/zebra/actions/runs/5798021847/job/15717359090?pr=7302#step:8:215
Thanks for looking at the tests. I forgot to mention that the bug that this PR addresses is gone—an example of the bug in #7266: https://github.com/ZcashFoundation/zebra/actions/runs/5798018815/job/15717022677. This PR fails because of an unrelated bug that I'll fix in another PR. |
8ec4631
into
dedup-tree-insertion-fin-state
… trees into finalized state (#7266) * Pass ZebraDB to batch preparation * Dedup the insertion of Sapling trees into database * Dedup the insertion of Orchard trees into database * Update snapshots * Rename batch preparation of trees * Simplify the naming of note commitment trees * Correctly retrieve Sapling trees from fin state * Correctly retrieve Orchard trees from fin state * Simplify the naming of methods for Sprout trees * Simplify the naming of methods for Sapling trees * Simplify the naming of methods for Orchard trees * Reduce disk reads by caching trees. (#7276) * Bump the state minor version * Reset the state patch version * Simplify the preparation of genesis trees * Store the roots of the trees of the genesis block * Add the genesis roots to snapshots * fix(test): Don't include shielded data in genesis blocks (#7302) * fix(state): Fix marking format upgrades (#7304) --------- Co-authored-by: Arya <aryasolhi@gmail.com>
Motivation
Our proptests were generating genesis blocks containing transactions with joinsplits and shielded data. PR #7266 asserts that the note commitment trees associated with the genesis block are equal to the empty trees. These assertions were failing in that PR because the note commitment trees for genesis blocks weren't empty.
Solution
Reviewer Checklist