rpc: Cannot parse response from /block_results
endpoint when it contains a DuplicateVoteEvidence
#1194
Labels
bug
Something isn't working
What went wrong?
This issue was found by @sainoe on the Interchain Security testnet where they were testing handling of duplicate votes.
After having a validator double-vote at a height
H
, the relayer could not parse the result of the/block_results?height=-H
endpoint because it contained a serializedDuplicateVoteEvidence
.Steps to reproduce
Try to parse the following JSON as a
tendermint_rpc::endpoint::block_search::Response
.I have highlighted the lines where a parsing error occured using red ASCII arrows.
Click here to show the JSON
Definition of "done"
The above JSON data can be parsed into a
tendermint_rpc::endpoint::block_search::Response
.The following patch allows the above to be properly deserialized. We therefore need to update
proto-compiler
accordingly.The text was updated successfully, but these errors were encountered: