Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

JSON-RPC Filter eth_newBlockFilter returning incorrect block hashes when calling eth_getFilterChanges #1476

Closed
GAtom22 opened this issue Nov 18, 2022 · 0 comments · Fixed by #1503

Comments

@GAtom22
Copy link
Contributor

GAtom22 commented Nov 18, 2022

System info: OS Ubuntu 20.04, Ethermint main branch and latest version

Steps to reproduce:

  1. Create a new block filter with the JSON-RPC method eth_newBlockFilter
  2. Call the JSON-RPC method eth_getFilterChanges to get an array of the latest block hashes. This is the expected result according to Ethereum docs.
  3. Try to get block data usint the JSON-RPC method eth_getBlockByHash using one of the hashed returned in eth_getFilterChanges

Expected behavior: Should return information about the block

Actual behavior: Returns null

Additional info: This occurs because the returned array of hashes are not the correct block hashes.

@GAtom22 GAtom22 self-assigned this Nov 29, 2022
@GAtom22 GAtom22 added Type: Tests issues and PR related to tests C:JSON-RPC JSON-RPC client 🐛 Bug: Medium 👉 Needs tests and removed Type: Tests issues and PR related to tests labels Nov 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Canceled
Development

Successfully merging a pull request may close this issue.

1 participant