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

fix: after keyvals param removal, GetProofItem returns one nil value per stem #376

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

gballet
Copy link
Member

@gballet gballet commented Jul 11, 2023

Until recently, the proof construction was using a "keyvals" map to check if a key had a value that was present in the tree. This has been removed, so now GetProofItems needs to retun one nil value for every key corresponding to a missing stem.

@jsign there must be a way in terms of memory allocations that is more efficient, feel free to update that PR.

@gballet gballet requested a review from jsign July 11, 2023 10:08
Copy link
Collaborator

@jsign jsign left a comment

Choose a reason for hiding this comment

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

LGTM

Yeah, let's make it correct and reg performance let's wait until we see things in profiles and act from there.

tree.go Outdated Show resolved Hide resolved
@gballet gballet merged commit e8712ad into master Jul 11, 2023
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.

2 participants