QA: add tests for eth_getHeaderByNumber() eth_getHeaderByHash() - #24094
Merged
AskAlexSharov merged 4 commits intoSep 18, 2026
Merged
AskAlexSharov merged 4 commits into
AskAlexSharov merged 4 commits into
Conversation
lupin012
marked this pull request as ready for review
September 17, 2026 11:25
…mber_eth_getHeaderByHash
Contributor
Author
|
@MysticRyuujin I have added rpc-tests for the new RPC methods eth_getHeaderByNumber() and eth_getHeaderByHash() of your PR |
AskAlexSharov
approved these changes
Sep 18, 2026
AskAlexSharov
deleted the
lupin012/add_rpc_tests_for_eth_getHeaderByNumber_eth_getHeaderByHash
branch
September 18, 2026 03:22
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
QA integration tests for
eth_getHeaderByNumberandeth_getHeaderByHash, the two APIs added in #23717.The fixtures live in erigontech/rpc-tests#603; this PR only pins
RPC_VERSIONto that branch so the QA workflows pick them up.eth_getHeaderByNumber0x41b57cbaseFeePerGas, no post-Merge fields0xC65D40baseFeePerGasset,difficultystill non-zero0x1036640difficulty0x0, nowithdrawalsRoot0x112A880withdrawalsRootset, no blob fields0x12C135BblobGasUsed,excessBlobGas,parentBeaconBlockRoot0x1600000requestsHashearliestlatestmetadata.latest, runs only with-L)pendingnull, the pending block is not exposed0x7FFFFFFFFFFFFFnull, not an errorabc0xprefix, erroreth_getHeaderByHashbaseFeePerGas, no post-Merge fieldsbaseFeePerGasset,difficultystill non-zerodifficulty0x0, nowithdrawalsRootwithdrawalsRootset, no blob fieldsblobGasUsed,excessBlobGas,parentBeaconBlockRootrequestsHashnull, not an errorThe same blocks are used by number and by hash, so the two APIs are compared on identical headers.
Integration-TestsCompared eth_getHeaderByNumber() and eth_getHeaderByHash() for historical block automatically on QA - RPC Integration Tests / mainnet-rpc-integ-tests
Compared eth_getHeaderByNumber() output with geth on the latest block — results match. Dispatched manually: CI run.