core/state: fix panic in state dumping #22225
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@winsvega reported a crash found via retesteth, introduced in commit #ddadc3d2 .
Repro:
alloc.json:{ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b": { "balance": "0x5ffd4878be161d74", "code": "0x", "nonce": "0xac", "storage": { "0x0a": "0x01" } }, "0x8a8eafb1cf62bfbeb1741769dae1a9dd47996192":{ "balance": "0xfeedbead", "nonce" : "0x00" } }WIthout this PR:
With this PR