-
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
change(state): Insert only the first tree in each series of identical trees into finalized state #7266
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.
Thanks for making this change, it looks great!
Do you think it's worth splitting this PR so Zebra 1.2.0
states will be compatible with older Zebra 1.2.0
versions?
...tate/src/service/finalized_state/zebra_db/block/tests/snapshots/orchard_trees@mainnet_2.snap
Outdated
Show resolved
Hide resolved
...lized_state/disk_format/tests/snapshots/orchard_note_commitment_tree_raw_data@mainnet_1.snap
Outdated
Show resolved
Hide resolved
...lized_state/disk_format/tests/snapshots/orchard_note_commitment_tree_raw_data@mainnet_2.snap
Outdated
Show resolved
Hide resolved
this one seems ready to merge? @upbqdn I'll leave it up to you how you want to resolve the final comments :) |
All comments are addressed. I noticed there's a bug in the new code that upgrades the database. I'll push a fix in a separate PR. |
I added a check that checks if the tree roots of the genesis block match the roots of empty trees, and I noticed our proptests currently generate genesis blocks with shielded data, so the trees aren't empty. I'll push a fix in a separate PR. |
a30ad15
to
65f1cb5
Compare
This again:
|
That should stop after #7304. |
@Mergifyio update |
☑️ Nothing to do
|
Motivation
Address part of #4784.
Solution
Reviewer Checklist