Match UnmarshalBinaryBare/MarshalBinaryBare
This commit is contained in:
parent
0fb2bbdfef
commit
27ae1a1490
|
@ -380,7 +380,7 @@
|
||||||
"ripemd160",
|
"ripemd160",
|
||||||
"salsa20/salsa"
|
"salsa20/salsa"
|
||||||
]
|
]
|
||||||
revision = "ab813273cd59e1333f7ae7bff5d027d4aadf528c"
|
revision = "5ba7f63082460102a45837dbd1827e10f9479ac0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|
|
@ -20,7 +20,7 @@ func NewBeginBlocker(sk Keeper) sdk.BeginBlocker {
|
||||||
// Deal with any equivocation evidence
|
// Deal with any equivocation evidence
|
||||||
for _, evidence := range req.ByzantineValidators {
|
for _, evidence := range req.ByzantineValidators {
|
||||||
var pk crypto.PubKey
|
var pk crypto.PubKey
|
||||||
sk.cdc.MustUnmarshalBinary(evidence.PubKey, &pk)
|
sk.cdc.MustUnmarshalBinaryBare(evidence.PubKey, &pk)
|
||||||
switch string(evidence.Type) {
|
switch string(evidence.Type) {
|
||||||
case tmtypes.DUPLICATE_VOTE:
|
case tmtypes.DUPLICATE_VOTE:
|
||||||
sk.handleDoubleSign(ctx, evidence.Height, evidence.Time, pk)
|
sk.handleDoubleSign(ctx, evidence.Height, evidence.Time, pk)
|
||||||
|
@ -33,7 +33,7 @@ func NewBeginBlocker(sk Keeper) sdk.BeginBlocker {
|
||||||
absent := make(map[crypto.PubKey]struct{})
|
absent := make(map[crypto.PubKey]struct{})
|
||||||
for _, pubkey := range req.AbsentValidators {
|
for _, pubkey := range req.AbsentValidators {
|
||||||
var pk crypto.PubKey
|
var pk crypto.PubKey
|
||||||
sk.cdc.MustUnmarshalBinary(pubkey, &pk)
|
sk.cdc.MustUnmarshalBinaryBare(pubkey, &pk)
|
||||||
absent[pk] = struct{}{}
|
absent[pk] = struct{}{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue