tendermint-rs icon indicating copy to clipboard operation
tendermint-rs copied to clipboard

Ensure compatibility of misbehaviour evidence JSON serialization with CometBFT v0.37.10 and v0.38.11

Open romac opened this issue 6 months ago • 0 comments

In CometBFT v0.37.10 and v0.38.11, the name of the fields of the DuplicateVoteEvidence and LightClientAttackEvidence structs when serialized to JSON have changed from PascalCase to snake_case.

As Hermes uses those structs to process and report misbehaviour evidence, we should make sure that we can still do so with those versions using snake_case, while keeping backward compatibility with chains running previous versions using UpperCamelCase.

romac avatar Aug 12 '24 07:08 romac