Cesar Brazon
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.

      Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

      Explore these features while you wait
      Complete general settings
      Bookmark and like published notes
      Write a few more notes
      Complete general settings
      Write a few more notes
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Engine API/Consensus Layer Mock Simulator - Test Results Tracker ## Description Tests described in this document run using the hive simulator [ethereum/engine](https://github.com/ethereum/hive/tree/master/simulators/ethereum/engine). Tests use a Consensus Layer Mock to simulate test scenarios on the Execution Clients. Merge-compatible client must be used in hive to be able to run these tests (Example: [merge-go-ethereum](https://github.com/ethereum/hive/tree/master/clients/merge-go-ethereum)) ## Versions used for testing: Geth: github.com/MariusVanDerWijden/go-ethereum/commits/merge-kiln-v2 @23ce1ab Nethermind: Docker [nethermindeth/nethermind:kiln_0.5 @ cb1a890ef672c6827d7b10bf1af5c7a6e29a8e6d5cb1f93d315e7d6b6ab5745a](https://hub.docker.com/layers/nethermindeth/nethermind/kiln_0.5/images/sha256-cb1a890ef672c6827d7b10bf1af5c7a6e29a8e6d5cb1f93d315e7d6b6ab5745a?context=explore) EthereumJS: https://github.com/ethereumjs/ethereumjs-monorepo @739f839 Test Vectors: Kiln Public Testnet (Kiln v1 + prevRandao rename): github.com/marioevz/hive/tree/engine-api-simulator-kiln-public-testnet @777aced Previous Test Vectors: Stable (Kiln v1): github.com/ethereum/hive @875e6ac ## Current Test Case Results (🔥🧱 == Test case is running successfully) ### Totals | Geth | Nethermind | Besu | Erigon | EthereumJS | | -------- | -------- | -------- | -------- | -------- | | 42/43 | 33/43 | | |31/43 ### Engine API Negative Test Cases: | Test Case | Geth | Nethermind | Besu | Erigon | EthereumJS | | -------- | -------- | -------- | -------- | -------- | -------- | | Invalid Terminal Block in ForkchoiceUpdated | 🔥🧱| 🔥🧱 | | |🔥🧱 | Invalid GetPayload Under PoW | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Terminal Block in NewPayload | 🔥🧱| 🔥🧱 | | |🔥🧱 | Unknown HeadBlockHash | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Unknown SafeBlockHash | 🔥🧱| 🔥🧱 | | |🔥🧱 | Unknown FinalizedBlockHash | 🔥🧱| 🔥🧱| | |🔥🧱 | Pre-TTD Block Hash | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Bad blockhash on NewPayload | 🔥🧱| 🔥🧱 | | | 🔥🧱 | ParentHash==BlockHash on NewPayload | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload / ParentHash | 🔥🧱| 🔥🧱 | | | | Invalid Field in NewPayload / StateRoot | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload / ReceiptsRoot | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload / BlockNumber | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload / GasLimit | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload / GasUsed | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload / Timestamp | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload / PrevRandao | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload / Incomplete Transactions | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload Transaction / Signature | 🔥🧱| 🔥🧱 | | | 🔥🧱 | Invalid Field in NewPayload Transaction / Nonce | 🔥🧱| 🔥🧱| | | 🔥🧱 | Invalid Field in NewPayload Transaction / GasPrice | 🔥🧱| 🔥🧱| | | 🔥🧱 | Invalid Field in NewPayload Transaction / Gas | 🔥🧱| 🔥🧱| | | 🔥🧱 | Invalid Field in NewPayload Transaction / Value | 🔥🧱| 🔥🧱| | | 🔥🧱 ### Eth RPC Status on ForkchoiceUpdated Events: | Test Case | Geth | Nethermind | Besu | Erigon | EthereumJS | | -------- | -------- | -------- | -------- | -------- | -------- | | Latest Block after NewPayload | 🔥🧱| 🔥🧱| | | 🔥🧱 | Latest Block after New HeadBlock | 🔥🧱| 🔥🧱| | | 🔥🧱 | Latest Block after New SafeBlock | 🔥🧱| 🔥🧱| | | 🔥🧱 | Latest Block after New FinalizedBlock | 🔥🧱| 🔥🧱| | | 🔥🧱 | Latest Block after Reorg | 🔥🧱| | | | 🔥🧱 ### Payload Execution | Test Case | Geth | Nethermind | Besu | Erigon | EthereumJS | | -------- | -------- | -------- | -------- | -------- | -------- | | Re-Execute Payload | 🔥🧱| 🔥🧱| | | 🔥🧱 | Multiple New Payloads Extending Canonical Chain | 🔥🧱| 🔥🧱| | | 🔥🧱 | Out of Order Payload Execution | | | | | ### Transaction Reorg using Engine API | Test Case | Geth | Nethermind | Besu | Erigon | EthereumJS | | -------- | -------- | -------- | -------- | -------- | -------- | | Transaction Reorg using ForkchoiceUpdated | 🔥🧱| | Sidechain Reorg | 🔥🧱| 🔥🧱 | | | 🔥🧱 ### Suggested Fee Recipient in Payload creation | Test Case | Geth | Nethermind | Besu | Erigon | EthereumJS | | -------- | -------- | -------- | -------- | -------- | -------- | | Suggested Fee Recipient Test | 🔥🧱| 🔥🧱 | | | 🔥🧱 ### PrevRandao Opcode | Test Case | Geth | Nethermind | Besu | Erigon | EthereumJS | | -------- | -------- | -------- | -------- | -------- | -------- | | PrevRandao Opcode Transactions | 🔥🧱| 🔥🧱 | | | 🔥🧱 ### Sync Tests | Test Case | Geth | Nethermind | Besu | Erigon | EthereumJS | | -------- | -------- | -------- | -------- | -------- | -------- | | Sync Client Post Merge | 🔥🧱| ### Merge Tests | Test Case | Geth | Nethermind | Besu | Erigon | EthereumJS | | -------- | -------- | -------- | -------- | -------- | -------- | | Single Block PoW Re-org to Higher-Total-Difficulty Chain, Equal Height | 🔥🧱| | Single Block PoW Re-org to Lower-Total-Difficulty Chain, Equal Height | 🔥🧱| | Two Block PoW Re-org to Higher-Total-Difficulty Chain, Equal Height | 🔥🧱| | Two Block PoW Re-org to Lower-Total-Difficulty Chain, Equal Height | 🔥🧱| | Two Block PoW Re-org to Higher-Height Chain | 🔥🧱| | Two Block PoW Re-org to Lower-Height Chain |🔥🧱| | Halt following PoW chain | 🔥🧱| 🔥🧱 --- ## Full Description of Test Cases ### Engine API Negative Test Cases: - Invalid Terminal Block in ForkchoiceUpdated: Client should reject ForkchoiceUpdated directives if the referenced HeadBlockHash does not meet the TTD requirement. - Invalid GetPayload Under PoW: Client must reject GetPayload directives under PoW. - Invalid Terminal Block in NewPayload: Client must reject NewPayload directives if the referenced ParentHash does not meet the TTD requirement. - Unknown HeadBlockHash: Perform a forkchoiceUpdated call with an unknown (random) HeadBlockHash, the client should initiate the syncing process. - Unknown SafeBlockHash: Perform a forkchoiceUpdated call with an unknown (random) SafeBlockHash, the client should throw an error since the hash is not an ancestor to the HeadBlockHash. - Unknown FinalizedBlockHash: Perform a forkchoiceUpdated call with an unknown (random) FinalizedBlockHash, the client should throw an error. - Pre-TTD Block Hash: Perform a forkchoiceUpdated call using a block hash part of the canonical chain that precedes the block where the TTD occurred. (Behavior is undefined for this edge case and not verified, but should not produce unrecoverable error) - Bad blockhash on NewPayload: Send a NewPayload directive to the client including an incorrect BlockHash, should result in an error. - ParentHash==BlockHash on NewPayload: Send a NewPayload directive to the client including ParentHash that is equal to the BlockHash (Incorrect hash). - Invalid Field in NewPayload: Modify fields of the ExecutablePayload while maintaining a valid BlockHash, including: - ParentHash - StateRoot - ReceiptsRoot - BlockNumber - GasLimit - GasUsed - Timestamp - PrevRandao - Removed Transaction - Transaction with incorrect fields: - Signature - Nonce - GasPrice - Gas - Value ### Eth RPC Status on ForkchoiceUpdated Events: - Latest Block after NewPayload: Verify the Block returned by the Eth RPC after a new payload is executed. Eth RPC should still return previous block. - Latest Block after New HeadBlock: Verify the Block returned by the Eth RPC after a new HeadBlockHash is set using forkchoiceUpdated. Eth RPC should return new block. - Latest Block after New SafeBlock: Verify the Block returned by the Eth RPC after a new SafeBlockHash is set using forkchoiceUpdated. Eth RPC should return new block. - Latest Block after New FinalizedBlock: Verify the Block returned by the Eth RPC after a new FinalizedBlockHash is set using forkchoiceUpdated. Eth RPC should return new block. - Latest Block after Reorg: Verify the Block returned by the Eth RPC after a forkchoiceUpdated reorgs HeadBlockHash/SafeBlockHash to their previous value. Eth RPC should return previous block. ### Payload Execution - Re-Execute Payload: Re-execute already executed payloads (10) and verify that no errors occur. - Multiple New Payloads Extending Canonical Chain: Send 80 valid NewPayload directives extending the canonical chain. Only one of the payloads is selected using ForkchoiceUpdated directive. - Out of Order Payload Execution: Launch a first client and produce N payloads. Launch a second client and send payloads (NewPayload) in reverse order (N, N - 1, ..., 1). The payloads should be ACCEPTED/SYNCING, and the last payload should be VALID (since payload 1 successfully links the chain with the Genesis). ### Transaction Reorg using Engine API - Transaction Reorg using ForkchoiceUpdated: Send transactions that modify the state tree after the PoS switch and verify that the modifications are correctly rolled back when a ForkchoiceUpdated event occurs with a block older than the block where the transaction was included. - Sidechain Reorg: Send a transaction that modifies the state, ForkchoiceUpdate to the payload containing this transaction. Then send an alternative payload, that produces a different state with the same transaction, and use ForkchoiceUpdated to change into this sidechain. ### Suggested Fee Recipient in Payload creation - Suggested Fee Recipient Test: Set the fee recipient to a custom address and verify that (a) balance is not increased when no fees are collected (b) balance is increased appropriately when fees are collected. ### PrevRandao Opcode: - PrevRandao Opcode Transactions: Send transactions that modify the state to the value of the 'DIFFICULTY' opcode and verify that: (a) the state is equal to the difficulty on blocks before the TTD is crossed (b) the state is equal to the PrevRandao value provided using forkchoiceUpdated after PoS transition. ### Sync Tests: - Sync Client Post Merge: Launch a first client and verify that the transition to PoS occurs. Launch a second client and verify that it successfully syncs to the first client's chain. ### Engine API Merge Tests: Test cases using multiple Proof of Work chains to test the client's behavior when the Terminal Total Difficulty is reached by two different blocks simultaneously and the Engine API takes over. - Single Block PoW Re-org to Higher-Total-Difficulty Chain, Equal Height: Client 1 starts with chain G -> A, Client 2 starts with chain G -> B. Blocks A and B reach TTD, but block B has higher difficulty than A. ForkchoiceUpdated is sent to Client 1 with A as Head. ForkchoiceUpdated is sent to Client 1 with B as Head. Verification is made that Client 1 Re-orgs to chain G -> B. - Single Block PoW Re-org to Lower-Total-Difficulty Chain, Equal Height: Client 1 starts with chain G -> A, Client 2 starts with chain G -> B. Blocks A and B reach TTD, but block A has higher difficulty than B. ForkchoiceUpdated is sent to Client 1 with A as Head. ForkchoiceUpdated is sent to Client 1 with B as Head. Verification is made that Client 1 Re-orgs to chain G -> B. - Two Block PoW Re-org to Higher-Total-Difficulty Chain, Equal Height: Client 1 starts with chain G -> A -> B, Client 2 starts with chain G -> C -> D. Blocks B and D reach TTD, but block D has higher total difficulty than B. ForkchoiceUpdated is sent to Client 1 with B as Head. ForkchoiceUpdated is sent to Client 1 with D as Head. Verification is made that Client 1 Re-orgs to chain G -> C -> D. - Two Block PoW Re-org to Lower-Total-Difficulty Chain, Equal Height: Client 1 starts with chain G -> A -> B, Client 2 starts with chain G -> C -> D. Blocks B and D reach TTD, but block B has higher total difficulty than D. ForkchoiceUpdated is sent to Client 1 with B as Head. ForkchoiceUpdated is sent to Client 1 with D as Head. Verification is made that Client 1 Re-orgs to chain G -> C -> D. - Two Block PoW Re-org to Higher-Height Chain: Client 1 starts with chain G -> A, Client 2 starts with chain G -> B -> C. Blocks A and C reach TTD, but block C has higher height than A. ForkchoiceUpdated is sent to Client 1 with A as Head. ForkchoiceUpdated is sent to Client 1 with C as Head. Verification is made that Client 1 Re-orgs to chain G -> B -> C. - Two Block PoW Re-org to Lower-Height Chain: Client 1 starts with chain G -> A -> B, Client 2 starts with chain G -> C. Blocks B and C reach TTD, but block B has higher height than C. ForkchoiceUpdated is sent to Client 1 with B as Head. ForkchoiceUpdated is sent to Client 1 with C as Head. Verification is made that Client 1 Re-orgs to chain G -> C. - Halt following PoW chain: Client 1 starts with chain G -> A, Client 2 starts with chain G -> A -> B. Block A reaches TTD, but Client 2 has a higher TTD and accepts block B (simulating a client not complying with the merge). Verification is made that Client 1 does not follow Client 2 chain to block B.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully