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

EIP 3651: Warm COINBASE #3651

Merged
merged 9 commits into from
Jul 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions EIPS/eip-3651.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
eip: 3651
title: Warm COINBASE
author: William Morriss (@wjmelements)
discussions-to: https://ethereum-magicians.org/t/eip-3651-warm-coinbase/6640
status: Draft
type: Standards Track
category: Core
created: 2021-07-12
requires: 2929
---

## Simple Summary
Starts the `COINBASE` address warm

## Abstract
The `COINBASE` address shall be warm at the start of transaction execution, in accordance with the actual cost of reading that account.

## Motivation
Direct `COINBASE` payments are becoming increasingly popular because they allow conditional payments, which provide benefits such as implicit cancellation of transactions that would revert.
Copy link

Choose a reason for hiding this comment

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

@wjmelements
Hi, could you explain what is Direct COINBASE payments ? thanks in advance.
BTW, the EIP still encourage users to paying for transactions on Ethereum?

But accessing `COINBASE` is overpriced; the address is initially cold under the access list framework introduced in [EIP-2929](https://eips.ethereum.org/EIPS/eip-2929).
Copy link
Contributor

Choose a reason for hiding this comment

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

Grammar:

Suggested change
But accessing `COINBASE` is overpriced; the address is initially cold under the access list framework introduced in [EIP-2929](https://eips.ethereum.org/EIPS/eip-2929).
Accessing `COINBASE` is overpriced; the address is initially cold under the access list framework introduced in [EIP-2929](https://eips.ethereum.org/EIPS/eip-2929).

Copy link
Member

Choose a reason for hiding this comment

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

@MicahZoltu didn't you miss the long URL vs. ./eip-2929.md? 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, yes. @wjmelements please change the link to [EIP-2929](./eip-2929.md) to ensure the link works properly regardless of where the EIP is viewed.

Choose a reason for hiding this comment

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

😀

This gas cost mismatch can incentivize alternative payments besides ETH, such as ERC20, but ETH should be the primary means of paying for transactions on Ethereum.

## Specification
At the start of transaction execution, `accessed_addresses` shall be initialized to also include the address returned by `COINBASE` (`0x41`).

## Rationale
The addresses currently initialized warm are the addresses that should already be loaded at the start of transaction validation.
The `ORIGIN` address is always loaded to check its balance against the gas limit and the gas price.
The `tx.to` address is always loaded to begin execution.
The `COINBASE` address should also be always be loaded because they receive the block reward as well as the transaction fees.

## Backwards Compatibility
There are no known backward compatibility issues presented by this change.

## Security Considerations
There are no known security considerations introduced by this change.

## Copyright
wjmelements marked this conversation as resolved.
Show resolved Hide resolved
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).