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

core/state: tests on the binary iterator #30754

Merged
merged 5 commits into from
Nov 15, 2024

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Nov 14, 2024

Work in progress

cc @rjl493456442

@holiman
Copy link
Contributor Author

holiman commented Nov 14, 2024

This PR now contains additional test coverage, and fails as expected two tests concerning deletes. @rjl493456442 want to push your fixes on top here?

@holiman
Copy link
Contributor Author

holiman commented Nov 14, 2024

@rjl493456442 I pushed a different fix now. Sorry for the noise :)

@holiman holiman marked this pull request as ready for review November 14, 2024 14:39
if !it.next() {
return false
}
if len(it.Account()) == 0 && len(it.Slot()) == 0 {
Copy link
Member

Choose a reason for hiding this comment

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

We should also check the it.Fail.

it.Fail might be set if any error occurs by calling it.Account() or it.Slot(). If so, we should return false and stop iteration.

Copy link
Member

@rjl493456442 rjl493456442 left a comment

Choose a reason for hiding this comment

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

one issue, otherwise lgtm

@rjl493456442
Copy link
Member

This PR now contains additional test coverage, and fails as expected two tests concerning deletes. @rjl493456442 want to push your fixes on top here?

We can go with this pull request and I will rebase my stuff on top

@holiman holiman added this to the 1.14.12 milestone Nov 15, 2024
@holiman holiman merged commit ec280e0 into ethereum:master Nov 15, 2024
3 checks passed
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