From 7fe02a04dbfacfa0831e8ef5c3d54ba444521c16 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Tue, 13 Aug 2019 12:32:40 +0400 Subject: [PATCH] store: register block amino, not just crypto (#3894) * store: register block amino, not just crypto Fixes #3893 * update changelog --- CHANGELOG_PENDING.md | 1 + store/codec.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG_PENDING.md b/CHANGELOG_PENDING.md index 948c7b663..efc518e80 100644 --- a/CHANGELOG_PENDING.md +++ b/CHANGELOG_PENDING.md @@ -26,3 +26,4 @@ program](https://hackerone.com/tendermint). ### BUG FIXES: - [config] \#3868 move misplaced `max_msg_bytes` into mempool section +- [store] \#3893 register block amino, not just crypto diff --git a/store/codec.go b/store/codec.go index 67b838c01..4895e8994 100644 --- a/store/codec.go +++ b/store/codec.go @@ -2,11 +2,11 @@ package store import ( amino "github.com/tendermint/go-amino" - cryptoAmino "github.com/tendermint/tendermint/crypto/encoding/amino" + "github.com/tendermint/tendermint/types" ) var cdc = amino.NewCodec() func init() { - cryptoAmino.RegisterAmino(cdc) + types.RegisterBlockAmino(cdc) }