-
Notifications
You must be signed in to change notification settings - Fork 224
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
Add /consensus_params
RPC endpoint
#972
Conversation
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Signed-off-by: Thane Thomson <connect@thanethomson.com>
@andynog a quick way of testing this would be to run the # Get the latest consensus parameters
cargo run --all-features --bin tendermint-rpc -- -u https://validator-address.com latest-consensus-params
# Get the consensus parameters at height 1234
cargo run --all-features --bin tendermint-rpc -- -u https://validator-address.com consensus-params 1234 |
Codecov Report
@@ Coverage Diff @@
## master #972 +/- ##
======================================
Coverage 72.1% 72.2%
======================================
Files 203 204 +1
Lines 16577 16591 +14
======================================
+ Hits 11961 11985 +24
+ Misses 4616 4606 -10
Continue to review full report at Codecov.
|
Also for testing, to complement Thane's instructions, we can patch in ibc-rs the main Cargo.toml to use this branch, and call into the
@andynog is there a branch WIP for informalsystems/hermes#1336 already? |
Signed-off-by: Thane Thomson <connect@thanethomson.com>
Tested this line:
And this is the response from the server using the RPC endpoint
Most seems OK, the only difference I see is that the RPC outputs a
This line also seems to work fine:
|
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.
I think overall looks good to me. Had a minor comment about a version
field
Sorry, about be7c665 and its revert, I failed to notice the |
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.
All good from my side, we're now using the new endpoint succesfully in informalsystems/hermes#1361 :)
Awesome. Yeah if we eventually need the |
Partial fulfillment of #832, and helps towards informalsystems/hermes#1336
.changelog/