Closed ljoss17 closed 4 months ago
If the /block_results response has an empty JSON object for the consensus_param_updates instead of null, the deserialization will fail.
/block_results
consensus_param_updates
null
{"consensus_param_updates": {}}
{"consensus_param_updates": null}
None
Deserializing an empty JSON object should also result in consensus_param_updates being None
What went wrong?
If the
/block_results
response has an empty JSON object for theconsensus_param_updates
instead ofnull
, the deserialization will fail.{"consensus_param_updates": {}}
: fails{"consensus_param_updates": null}
: succeeds, settingconsensus_param_updates
toNone
Definition of "done"
Deserializing an empty JSON object should also result in
consensus_param_updates
beingNone