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

Remove no-op changes from history results #1335

Merged
merged 5 commits into from
Apr 13, 2023
Merged

Remove no-op changes from history results #1335

merged 5 commits into from
Apr 13, 2023

Conversation

dboehm-avalabs
Copy link
Contributor

getValueChanges can end up including no-op key/value changes. Add a check to remove them from the results.

}
}

return true
},
)

// Keep only the smallest [maxLength] items in [combinedChanges.values].
for sortedKeys.Len() > maxLength {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

move this outside of the loop since a no-op key/value could cause a value that was preiously excluded to be included again.

@danlaine danlaine merged commit 901876c into dev Apr 13, 2023
@danlaine danlaine deleted the ChangeProofBugFix branch April 13, 2023 16:59
@patrick-ogrady patrick-ogrady added this to the v1.10.1 milestone Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants