Skip to content

Fix/shomei decode historical trielogs#164

Closed
garyschulte wants to merge 3 commits into
Consensys:mainfrom
garyschulte:fix/shomei-decode-historical-trielogs
Closed

Fix/shomei decode historical trielogs#164
garyschulte wants to merge 3 commits into
Consensys:mainfrom
garyschulte:fix/shomei-decode-historical-trielogs

Conversation

@garyschulte
Copy link
Copy Markdown
Contributor

@garyschulte garyschulte commented Apr 9, 2026

PR Description

Add a trielog decode overload that enables zktrielogs to be built against historical state. Use this overload in rollup_getVirtualZkEVMStateMerkleProofV1 when decoding trielogs from eth_simulateV1

Relates to #136

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Note

Medium Risk
Changes which WorldStateStorage is consulted during trielog decoding, affecting account/storage old-value verification and virtual proof generation. Risk is mainly correctness-related for historical/virtual block processing; limited surface area but can cause decoding failures or incorrect proofs if miswired.

Overview
Fixes historical/virtual trielog decoding by allowing TrieLogLayerConverter to decode against a caller-provided WorldStateStorage instead of always using the head state.

Updates rollup_getVirtualZkEVMStateMerkleProofV1 to pass the cached parent block’s ZkEvmWorldStateStorage when decoding the eth_simulateV1 trielog, and adjusts the associated test to mock the new overload.

Reviewed by Cursor Bugbot for commit 97a2266. Bugbot is set up for automated code reviews on this repo. Configure here.

Signed-off-by: garyschulte <garyschulte@gmail.com>
…ed overload

Signed-off-by: garyschulte <garyschulte@gmail.com>
@garyschulte garyschulte force-pushed the fix/shomei-decode-historical-trielogs branch from ad00da8 to be19f52 Compare April 9, 2026 21:19
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit be19f52. Configure here.

Signed-off-by: garyschulte <garyschulte@gmail.com>
@garyschulte garyschulte force-pushed the fix/shomei-decode-historical-trielogs branch from ad00da8 to 97a2266 Compare April 10, 2026 02:36
@garyschulte garyschulte mentioned this pull request Apr 11, 2026
2 tasks
@garyschulte
Copy link
Copy Markdown
Contributor Author

this PR is now superseded by #165

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