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

[DRAFT] EIP-3978: Introduce gas refunds on reverts #3978

Merged
merged 9 commits into from
Sep 24, 2021

Conversation

k06a
Copy link
Contributor

@k06a k06a commented Sep 16, 2021

@eth-bot eth-bot enabled auto-merge (squash) September 16, 2021 16:28
@k06a k06a changed the title Introduce gas refunds on reverts [DRAFT] EIP-3978: Introduce gas refunds on reverts Sep 16, 2021
@eth-bot
Copy link
Collaborator

eth-bot commented Sep 16, 2021

All tests passed; auto-merging...

auto-merge was automatically disabled September 16, 2021 16:31

Head branch was pushed to by a user without write access

@k06a k06a force-pushed the gas-refund-on-reverts branch from d5ca1d1 to a3efac8 Compare September 16, 2021 16:31
@eth-bot eth-bot enabled auto-merge (squash) September 16, 2021 16:31
EIPS/eip-3978.md Outdated Show resolved Hide resolved
EIPS/eip-3978.md Outdated Show resolved Hide resolved
EIPS/eip-3978.md Outdated Show resolved Hide resolved
EIPS/eip-3978.md Outdated Show resolved Hide resolved
EIPS/eip-3978.md Outdated Show resolved Hide resolved
EIPS/eip-3978.md Outdated Show resolved Hide resolved
EIPS/eip-3978.md Outdated Show resolved Hide resolved
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
auto-merge was automatically disabled September 16, 2021 18:38

Head branch was pushed to by a user without write access

@eth-bot eth-bot enabled auto-merge (squash) September 16, 2021 18:38
…into gas-refund-on-reverts

# Conflicts:
#	EIPS/eip-3978.md
auto-merge was automatically disabled September 16, 2021 18:46

Head branch was pushed to by a user without write access

@eth-bot eth-bot enabled auto-merge (squash) September 16, 2021 18:46
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
auto-merge was automatically disabled September 16, 2021 20:13

Head branch was pushed to by a user without write access

@eth-bot eth-bot enabled auto-merge (squash) September 16, 2021 20:13
auto-merge was automatically disabled September 16, 2021 20:16

Head branch was pushed to by a user without write access

@eth-bot eth-bot enabled auto-merge (squash) September 16, 2021 20:16
Copy link
Contributor

@MicahZoltu MicahZoltu left a 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.

EIPS/eip-3978.md Outdated Show resolved Hide resolved

## 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:
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, this makes sense.

EIPS/eip-3978.md Outdated Show resolved Hide resolved
Co-authored-by: Micah Zoltu <micah@zoltu.net>
auto-merge was automatically disabled September 24, 2021 10:09

Head branch was pushed to by a user without write access

@eth-bot eth-bot enabled auto-merge (squash) September 24, 2021 10:10
Co-authored-by: Micah Zoltu <micah@zoltu.net>
auto-merge was automatically disabled September 24, 2021 10:10

Head branch was pushed to by a user without write access

@eth-bot eth-bot enabled auto-merge (squash) September 24, 2021 10:10
Copy link
Contributor

@MicahZoltu MicahZoltu left a 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.

@eth-bot eth-bot merged commit 2a0973b into ethereum:master Sep 24, 2021
PhABC pushed a commit to PhABC/EIPs that referenced this pull request Jan 25, 2022
* 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>
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.

4 participants