From 23f87d7231902b42d4af0a54d602c83f86b31cd0 Mon Sep 17 00:00:00 2001 From: jstride Date: Fri, 21 Apr 2023 21:12:42 +0800 Subject: [PATCH] disable pubkey checker panic --- x/slashing/keeper/infractions.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/slashing/keeper/infractions.go b/x/slashing/keeper/infractions.go index 17f56d04c6cc..d5f71e6247c2 100644 --- a/x/slashing/keeper/infractions.go +++ b/x/slashing/keeper/infractions.go @@ -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) {