Skip to content

core/state/snapshot: fix layer 5 key range in iterator traversal tests#34638

Open
cuiweixie wants to merge 1 commit intoethereum:masterfrom
cuiweixie:snapshot-fix-iterator-test-layer5-range
Open

core/state/snapshot: fix layer 5 key range in iterator traversal tests#34638
cuiweixie wants to merge 1 commit intoethereum:masterfrom
cuiweixie:snapshot-fix-iterator-test-layer5-range

Conversation

@cuiweixie
Copy link
Copy Markdown
Contributor

The layer-5 diff condition used i > 50 || i < 85, which is true for almost all keys in the 0..255 loop. Use i > 50 && i < 85 so layer 5 only covers the intended band (51..84), matching the comment intent in the test setup.

@cuiweixie cuiweixie requested a review from rjl493456442 as a code owner April 2, 2026 15:59
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.

1 participant