-
Notifications
You must be signed in to change notification settings - Fork 310
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
SSTORE net gas metering support #127
Conversation
Please rebase. |
…of Constantinople
Rebased. |
/** | ||
* A storage item has been modified after being modified before: X -> Y -> Z. | ||
*/ | ||
EVMC_STORAGE_MODIFIED_DIRTY = 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not place this next to MODIFIED
? And why not just name it MODIFIED_AGAIN
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
The
EVMC_STORAGE_MODIFIED_AGAIN
is better name indeed, we could change it. I just wanted if the EIP mentions this case as dirty. We could go even as far as proposing a change to the EIP. -
In some sense it is closer to
EVMC_STORAGE_MODIFIED
but also describes a case that was historically added later. I was thinking about this but both options are fine for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The EVMC_STORAGE_MODIFIED_AGAIN is better name indeed, we could change it.
How about changing it before ABI6 is released?
In some sense it is closer to EVMC_STORAGE_MODIFIED but also describes a case that was historically added later.
I think since this is added a breaking change I'd add it next to it, with the values pushed down.
If this enum would have been around for months I may be on a different opinion, but not in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created an issue to track this: #129
Also this missed adding the definition to the Go binding. |
The single "modified dirty" status is enough to implement EIP-1283, see ethereum/aleth#5238
Closes #91