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

GetNLeafs() doesn't work with Snapshot #4

Open
ed255 opened this issue Jul 29, 2021 · 0 comments
Open

GetNLeafs() doesn't work with Snapshot #4

ed255 opened this issue Jul 29, 2021 · 0 comments

Comments

@ed255
Copy link
Contributor

ed255 commented Jul 29, 2021

nLeafs is stored with a static key in the db, so only the nLeafs of the last version is available. When building a tree from an old root, the value of GetNLeafs() will be invalid.

nLeafs can be stored in the db with a dynamic key that contains the root to allow querying nLeafs at old roots.

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

No branches or pull requests

1 participant