-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rpc: add BlockByHash to supported methods #4923
Conversation
👋 Thanks for creating a PR! Before we can merge this PR, please make sure that all the following items have been
Thank you for your contribution to Tendermint! 🚀 |
Codecov Report
@@ Coverage Diff @@
## master #4923 +/- ##
==========================================
- Coverage 62.86% 62.69% -0.17%
==========================================
Files 198 198
Lines 20013 20041 +28
==========================================
- Hits 12581 12565 -16
- Misses 6406 6447 +41
- Partials 1026 1029 +3
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Description
Please add a description of the changes that this PR introduces and the files that
are the most critical to review.
BlockByHash
to supported rpc Client methods.Problem
Ethermint currently has to maintain a map
height
->block hash
on the store (see here) as it needs to expose theeth_getBlockByHash
JSON-RPC query for Web3 compatibility. This query is currently not supported by the tendermint RPC client.