Match UnmarshalBinaryBare/MarshalBinaryBare

This commit is contained in:
Christopher Goes 2018-05-31 22:19:46 +02:00
parent 0fb2bbdfef
commit 27ae1a1490
No known key found for this signature in database
GPG Key ID: E828D98232D328D3
2 changed files with 3 additions and 3 deletions

2
Gopkg.lock generated
View File

@ -380,7 +380,7 @@
"ripemd160",
"salsa20/salsa"
]
revision = "ab813273cd59e1333f7ae7bff5d027d4aadf528c"
revision = "5ba7f63082460102a45837dbd1827e10f9479ac0"
[[projects]]
branch = "master"

View File

@ -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{}{}
}