Skip to content

Support block hash for eth_getBlockReceipts JSON-RPC method #478

Merged
tungng98 merged 4 commits intoBuildOnViction:pre-releasefrom
c98tristan:feat/rpc-block-number-or-hash
Nov 19, 2024
Merged

Support block hash for eth_getBlockReceipts JSON-RPC method #478
tungng98 merged 4 commits intoBuildOnViction:pre-releasefrom
c98tristan:feat/rpc-block-number-or-hash

Conversation

@c98tristan
Copy link
Copy Markdown
Contributor

@c98tristan c98tristan commented Nov 14, 2024

This PR help query block receipt with eth_getBlockReceipts with both block number and block hash.
This PR had following change:

  • Use rpc.BlockNumberOrHash instead of rpc.BlockNumber for query in GetBlockReceipts method
  • Add unit test for block hash query

Reference: ethereum/go-ethereum#19491

@c98tristan c98tristan changed the title GetBlockReceipts support BlockHash GetBlockReceipts support block hash Nov 14, 2024
@c98tristan c98tristan changed the title GetBlockReceipts support block hash eth_getBlockReceipts JSON-RPC method support block hash Nov 14, 2024
@c98tristan c98tristan changed the title eth_getBlockReceipts JSON-RPC method support block hash Support block hash for eth_getBlockReceipts JSON-RPC method Nov 14, 2024
@c98tristan c98tristan marked this pull request as ready for review November 14, 2024 08:34
@tungng98 tungng98 changed the base branch from master to pre-release November 18, 2024 06:36
@tungng98 tungng98 merged commit 5bcd7d7 into BuildOnViction:pre-release Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants