Skip to content
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

Merged
merged 1 commit into from
Sep 3, 2018
Merged

SSTORE net gas metering support #127

merged 1 commit into from
Sep 3, 2018

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Sep 3, 2018

The single "modified dirty" status is enough to implement EIP-1283, see ethereum/aleth#5238

Closes #91

@chfast
Copy link
Member

chfast commented Sep 3, 2018

Please rebase.

@gumb0
Copy link
Member Author

gumb0 commented Sep 3, 2018

Rebased.

@chfast chfast merged commit 7a3f6bb into master Sep 3, 2018
@chfast chfast deleted the eip1283 branch September 3, 2018 14:38
/**
* A storage item has been modified after being modified before: X -> Y -> Z.
*/
EVMC_STORAGE_MODIFIED_DIRTY = 4
Copy link
Member

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 ?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

  1. 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.

  2. 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.

Copy link
Member

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.

Copy link
Member

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

@axic
Copy link
Member

axic commented Sep 3, 2018

Also this missed adding the definition to the Go binding.

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.

3 participants