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

only create one triedb in GenerateVerkleChain #300

Closed

Conversation

gballet
Copy link
Owner

@gballet gballet commented Oct 27, 2023

No description provided.

var snaps *snapshot.Tree
for i := 0; i < n; i++ {
triedb := state.NewDatabaseWithConfig(db, nil)
triedb.EndVerkleTransition()
Copy link
Owner Author

Choose a reason for hiding this comment

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

removing EndVerkleTransition from the loop is incorrect in case the status of ended is linked to the root - because then the status has to be marked for every subsequent block. Clearly not a good thing.

Note to self: also write the end and start block number, so that we can tell if a block is in an ended state. We need to pass the block number all over the place and that is complicated. A better approach, to investigate in a different PR, might consist in storing the ending status in the statedb proper, so that you can access is from e.g. OpenTrie without having to pass it the block number.

@gballet gballet modified the milestone: verkle-gen-devnet-3 Jan 27, 2024
@gballet
Copy link
Owner Author

gballet commented Jan 29, 2024

Revisiting this PR. it clearly doesn't work after the rebase over kaustinen-with-shapella although it should. In any case, it's not necessary for the kaustinen 3rd launch and so I am removing the milestone. Also note that this change is probably not at fault for the build not passing, since the verkle tests fail in the base branch as well.

@gballet
Copy link
Owner Author

gballet commented Apr 29, 2024

It's been merged via another branch, closing.

@gballet gballet closed this Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant