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 -- generalize error case to check state that should never occur #2743

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

danlaine
Copy link

Why this should be merged

If we are at this point in execution then v.getParentTrie().getEditableNode(key, hadValue) should always return a nil error.

How this works

Return an error if we can't get a node that we expect exists.

How this was tested

Existing UT.

@danlaine danlaine added this pull request to the merge queue Feb 19, 2024
Merged via the queue into master with commit d372402 Feb 19, 2024
17 checks passed
@danlaine danlaine deleted the merkledb-error-tweak branch February 19, 2024 15:06
mboben pushed a commit to mboben/avalanchego that referenced this pull request Apr 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants