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

Add EIP: Increase calldata cost #8529

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
43 changes: 43 additions & 0 deletions EIPS/eip-7703.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
eip: 7703
title: Increase calldata cost
description: Increase calldata cost to decrease the maximum block size
author: William Morriss (@wjmelements)
discussions-to: https://ethereum-magicians.org/t/eip-7703-increase-calldata-cost/19933
status: Draft
type: Standards Track
category: Core
created: 2024-05-07
---

## Abstract

An adjustment in the Ethereum calldata cost reduces the maximum possible block size and allows a higher block gas limit.

## Motivation

Larger blocks take longer to propagate through the network.
In this way, the maximium potential block size is constraining the block gas limit.
Therefore, in order to safely increase the block gas limit, the calldata gas must be increased.

## Specification

* Increase `G_CALLDATAZERO` from 4 to 12.
* Increase `G_CALLDATANONZERO` from 16 to 48.

## Rationale

Tripling the gas cost of calldata reduces the maximimum possible block size by a factor of three.

## Backwards Compatibility

Activation can cause some transactions to revert due to the increased gas costs.
Ahead of activation, `eth_estimateGas` could be calculated using the new parameters in order to provide results viable for activation, avoiding out-of-gas reverts.

## Security Considerations

No security issues have been found.

## Copyright

Copyright and related rights waived via [CC0](../LICENSE.md).