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

MerkleDB Path changes cleanup #2120

Merged
merged 4 commits into from
Oct 2, 2023
Merged

MerkleDB Path changes cleanup #2120

merged 4 commits into from
Oct 2, 2023

Conversation

dboehm-avalabs
Copy link
Contributor

Followup to #2010. Take care of a couple issues that weren't solved before the previous one was merged.

}
return bytesNeeded
// adding p.tokensPerByte - 1 causes the division to always round up
return (tokens + p.tokensPerByte - 1) / p.tokensPerByte
Copy link

Choose a reason for hiding this comment

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

Personally I like the other way better because I think it's more readable

Copy link

Choose a reason for hiding this comment

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

up to you

x/merkledb/trieview.go Outdated Show resolved Hide resolved
@danlaine danlaine merged commit d80760d into dev Oct 2, 2023
14 of 15 checks passed
@danlaine danlaine deleted the PathCleanup branch October 2, 2023 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants