Skip to content

Remove redundant writes when a state object is reverted#21

Merged
cffls merged 3 commits into
0xPolygonZero:feat/zerofrom
cffls:feat/zero
Nov 7, 2024
Merged

Remove redundant writes when a state object is reverted#21
cffls merged 3 commits into
0xPolygonZero:feat/zerofrom
cffls:feat/zero

Conversation

@cffls

@cffls cffls commented Nov 5, 2024

Copy link
Copy Markdown
Collaborator

No description provided.

cffls added 3 commits November 5, 2024 11:23
We don't want a reverted transaction to show up in written trace because it was touched by a previous transaction.
This fixes an issue when a storage slot is
* written but got reverted
* never read by sLoad opcode

When this happens, we still need to include the storage slot in the trace.

@Nashtare Nashtare left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks Jerry! Tested over 6500 blocks.

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