Skip to content

Commit

Permalink
disable pubkey checker panic
Browse files Browse the repository at this point in the history
  • Loading branch information
jstr1121 committed Apr 21, 2023
1 parent 0af178d commit 23f87d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/slashing/keeper/infractions.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ func (k Keeper) HandleValidatorSignature(ctx sdk.Context, addr cryptotypes.Addre

// fetch the validator public key
consAddr := sdk.ConsAddress(addr)
if _, err := k.GetPubkey(ctx, addr); err != nil {
panic(fmt.Sprintf("Validator consensus-address %s not found", consAddr))
}
// if _, err := k.GetPubkey(ctx, addr); err != nil {
// panic(fmt.Sprintf("Validator consensus-address %s not found", consAddr))
// }

// don't update missed blocks when validator's jailed
if k.sk.IsValidatorJailed(ctx, consAddr) {
Expand Down

0 comments on commit 23f87d7

Please sign in to comment.