-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[DRAFT] EIP-3978: Introduce gas refunds on reverts #3978
Conversation
All tests passed; auto-merging... |
Head branch was pushed to by a user without write access
d5ca1d1
to
a3efac8
Compare
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
Head branch was pushed to by a user without write access
…into gas-refund-on-reverts # Conflicts: # EIPS/eip-3978.md
Head branch was pushed to by a user without write access
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
Head branch was pushed to by a user without write access
…into gas-refund-on-reverts
Head branch was pushed to by a user without write access
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.
Blockers:
- EIP links need to be fixed to be relative.
Recommended fixes before draft (not blockers though):
- Adjust the language to be more assertive.
|
||
## Specification | ||
|
||
Let's count all SSTORE gas costs within every subcall, excluding access costs. And on reverting any subcall let's not erase refund counter, but: |
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.
This needs to be much more clearly specified, and it needs to be phrased as an assertion not a suggestion (don't use terms like "let's" as it comes off as a suggestion rather than an assertion. EIPs should be technical specifications that assert how things MUST behave.
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.
Thanks, this makes sense.
Co-authored-by: Micah Zoltu <micah@zoltu.net>
Head branch was pushed to by a user without write access
Co-authored-by: Micah Zoltu <micah@zoltu.net>
Head branch was pushed to by a user without write access
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.
Specification section really needs to be fleshed out a lot, but the basic EIP structure is here and there is nothing incorrect included so approving this as a draft.
* Introduce gas refunds on reverts * Update EIPS/eip-3978.md Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com> * Fixes * Update EIPS/eip-3978.md Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com> * Fix narrative * Update EIPS/eip-3978.md Co-authored-by: Micah Zoltu <micah@zoltu.net> * Update EIPS/eip-3978.md Co-authored-by: Micah Zoltu <micah@zoltu.net> Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com> Co-authored-by: Micah Zoltu <micah@zoltu.net>
Let's discuss here: https://ethereum-magicians.org/t/eip-3978-gas-refunds-on-reverts/7071