-
Notifications
You must be signed in to change notification settings - Fork 108
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(state): Remove workarounds for storing trees #7218
Conversation
There are the same two asserts above the two removed ones.
NFS = non finalized state
We were using the height of the last block instead of the initial block to construct a new chain.
2e64c22
to
0fd231c
Compare
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 these fixes!
I just committed one typo fix.
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.
Hmm, looks like 3 proptests failed for 3 different reasons?
---- service::non_finalized_state::tests::prop::forked_equals_pushed_genesis stdout ----
The application panicked (crashed).
Message: hash is present
Location: zebra-state/src/service/non_finalized_state/tests/prop.rs:206
We didn't get a proptest seed out of these tests, so we might need to run a few tests to make sure we've fixed this completely.
…a into fix-height-in-tests
It looks like it's two proptests, but the log contains three entries because one of the tests panicked in an I ran both protests five times locally, and none of them failed once. :/ I think I found the issue for both failures, though. I pushed a fix. |
I usually run all the related proptests in a loop for a few thousand iterations, overnight or while I'm doing other work. |
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.
Let's try it and see
This was automatically marked with |
Motivation
We were using some workarounds for committing trees into the non-finalized state. Namely, we turned off asserting that we don't commit more than a single tree at a particular height in tests. It would be great to have this resolved before we do the tree deduplication.
Solution
This PR removes the workarounds and fixes tests so they don't push more than a single block at a particular height.
Review
Reviewer Checklist