From a5d3e19b4a0ab530945f6cc4cae1b3c89fd8f9b3 Mon Sep 17 00:00:00 2001 From: Marko Date: Mon, 19 Oct 2020 09:16:45 +0200 Subject: [PATCH] types: rename json parts to part_set_header (#5523) --- CHANGELOG_PENDING.md | 2 ++ types/block.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 8f9296c07..383c69a2f 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -25,3 +25,5 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi - [statesync] \#5516 Check that all heights necessary to rebuild state for a snapshot exist before adding the snapshot to the pool. (@erikgrinaker) ### BUG FIXES + +- [types] \#5523 Change json naming of `PartSetHeader` within `BlockID` from `parts` to `part_set_header` (@marbar3778) diff --git a/types/block.go b/types/block.go index 01ef9b43b..a2203af94 100644 --- a/types/block.go +++ b/types/block.go @@ -1150,7 +1150,7 @@ func (data *EvidenceData) FromProto(eviData *tmproto.EvidenceData) error { // BlockID type BlockID struct { Hash tmbytes.HexBytes `json:"hash"` - PartSetHeader PartSetHeader `json:"parts"` + PartSetHeader PartSetHeader `json:"part_set_header"` } // Equals returns true if the BlockID matches the given BlockID