informalsystems / tendermint-rs

Client libraries for Tendermint/CometBFT in Rust!
Apache License 2.0
615 stars 224 forks source link

rpc: Deserializing `/block_results` with empty JSON `consensus_param_updates` fails #1440

Closed ljoss17 closed 4 months ago

ljoss17 commented 4 months ago

What went wrong?

If the /block_results response has an empty JSON object for the consensus_param_updates instead of null, the deserialization will fail.

Definition of "done"

Deserializing an empty JSON object should also result in consensus_param_updates being None