-
Notifications
You must be signed in to change notification settings - Fork 227
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: Allow empty JSON object value for consensus_param_updates
in /block_results
response
#1441
Conversation
Thanks! Can we also fix this while we are at it? tendermint-rs/tendermint/src/consensus/params.rs Lines 19 to 20 in ed576f2
|
Oh I missed that sorry. I'll fix it |
tendermint/src/lib.rs
Outdated
@@ -35,6 +35,7 @@ pub mod chain; | |||
pub mod channel; | |||
pub mod consensus; | |||
pub mod crypto; | |||
pub mod deserializers; |
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.
Let's add it to the serializers
instead, to help discovery.
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.
Done in 568f843
…osis fixture test
Closes: #1440
This PR adds a custom deserializer for the
consensus_param_updates
field in the/block_results
response to deserialize bothnull
and an empty JSON object toNone
.E.g. both of these will successfully deserialize to
None
:{"consensus_param_updates": {}}
{"consensus_param_updates": null}
Referenced an issue explaining the need for the change
Updated all relevant documentation in docs
Updated all code comments where relevant
Wrote tests
Added entry in
.changelog/