Coder Social home page Coder Social logo

Comments (2)

marioevz avatar marioevz commented on July 30, 2024

If you apply the get_blob_gasprice function from the EIP-4844 to the currentExcessBlobGas value, you get 0x02 as the result, the transaction has maxFeePerBlobGas==0x01 which is lower than the minimum value the current environment expects, therefore the transaction is invalid.

from execution-spec-tests.

spencer-tb avatar spencer-tb commented on July 30, 2024

Adding here as I wrote it out already :D

From the EIP we have the following formula:

def get_blob_gasprice(header: Header) -> int:
    return fake_exponential(
        MIN_BLOB_GASPRICE,
        header.excess_blob_gas,
        BLOB_GASPRICE_UPDATE_FRACTION
    )

If we utilize currentExcessBlobGas from the env, we end up with a positive value for get_blob_gasprice. As Mario mentioned specifically 0x02.

For the tx to be valid, it must pass this check (from the EIP):

assert tx.max_fee_per_blob_gas >= get_blob_gasprice(block.header)

As "maxFeePerBlobGas" : "0x01" < 0x02, the tx is invalid, with the error: INSUFFICIENT_MAX_FEE_PER_BLOB_GAS.

from execution-spec-tests.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.