in

Merge Mock – testing tool for the Ethereum Merge


Experimental debug tooling, mocking the execution engine and consensus node for
testing.

work in progress

engine_preparePayload

  • Creates an ExecutionPayload object with the request’s
    parameters.
    • receiptRoot is a random hash.
    • extraData is a random value.
    • gasLimit is a random value between 29,000,000 and 31,000,000.
    • gasUsed is a random value between 21,000 * len(txs) and gasLimit.
    • baseFee is a random value greater than 7.
    • transactions is an array of between 0 and 100 random transactions.
  • A unique identifier that internally maps to the payload is returned.

engine_getPayload

  • Returns the ExecutionPayload associated with the PayloadId

engine_executePayload

  • Returns the status of the execution.

engine_consensusValidated

engine_forkchoiceUpdated

  • Essentially a no-op.
  • TODO: what should the mock do if this is called to finalize a
    block that is already the ancestor of a finalized block?

LICENSE file.

GitHub

https://github.com/protolambda/mergemock




Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

GIPHY App Key not set. Please check settings

API Testing – Database State Validation in vREST NG

UPPCL Recruitment 2021, Notification Out for 303 Posts