EIP-7976: Further increase calldata cost

Discussion topic for EIP-7976

Update Log

External Reviews

None as of 1025-06-19

Outstanding Issues

None as of 1025-06-19

The text introducing the code block in EIP-7976 is:

The formula for determining the gas used per transaction changes from EIP-7623’s implementation to:

But as far as I can tell, the formula is exactly the same as EIP-7623:

EIP-7623EIP-7976
tx.gasUsed = (
    21000
    +
    max(
        STANDARD_TOKEN_COST * tokens_in_calldata
        + execution_gas_used
        + isContractCreation * (32000 + INITCODE_WORD_COST * words(calldata)),
        TOTAL_COST_FLOOR_PER_TOKEN * tokens_in_calldata
    )
)
tx.gasUsed = (
    21000
    +
    max(
        STANDARD_TOKEN_COST * tokens_in_calldata
        + execution_gas_used
        + isContractCreation * (32000 + INITCODE_WORD_COST * words(calldata)),
        TOTAL_COST_FLOOR_PER_TOKEN * tokens_in_calldata
    )
)

If the formula remains the same, and it’s just the constants that change, perhaps consider removing the code block entirely, since it’s unchanged.

Yeah, you’re right. I will simplify it in the EIP, in case this PR won’t be merged:

It changes the calldata pricing at the floor from 15/60 to 64/64 and introduces a new variable floor_tokens_in_calldata, and then, having the entire EIP-7623 formula mentioned might make sense.

My feeling atm is that this will be merged.