From 27ae1a14900be62d1980ea4f44af638cd8135ef7 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Thu, 31 May 2018 22:19:46 +0200 Subject: [PATCH] Match UnmarshalBinaryBare/MarshalBinaryBare --- Gopkg.lock | 2 +- x/slashing/tick.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index 9c8b9f0ca..a7aed3194 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -380,7 +380,7 @@ "ripemd160", "salsa20/salsa" ] - revision = "ab813273cd59e1333f7ae7bff5d027d4aadf528c" + revision = "5ba7f63082460102a45837dbd1827e10f9479ac0" [[projects]] branch = "master" diff --git a/x/slashing/tick.go b/x/slashing/tick.go index 402c8997b..82f76d802 100644 --- a/x/slashing/tick.go +++ b/x/slashing/tick.go @@ -20,7 +20,7 @@ func NewBeginBlocker(sk Keeper) sdk.BeginBlocker { // Deal with any equivocation evidence for _, evidence := range req.ByzantineValidators { var pk crypto.PubKey - sk.cdc.MustUnmarshalBinary(evidence.PubKey, &pk) + sk.cdc.MustUnmarshalBinaryBare(evidence.PubKey, &pk) switch string(evidence.Type) { case tmtypes.DUPLICATE_VOTE: sk.handleDoubleSign(ctx, evidence.Height, evidence.Time, pk) @@ -33,7 +33,7 @@ func NewBeginBlocker(sk Keeper) sdk.BeginBlocker { absent := make(map[crypto.PubKey]struct{}) for _, pubkey := range req.AbsentValidators { var pk crypto.PubKey - sk.cdc.MustUnmarshalBinary(pubkey, &pk) + sk.cdc.MustUnmarshalBinaryBare(pubkey, &pk) absent[pk] = struct{}{} }