diff --git a/x/auth/ante.go b/x/auth/ante.go index 4be1c6674d..bf70b3e9b6 100644 --- a/x/auth/ante.go +++ b/x/auth/ante.go @@ -8,6 +8,10 @@ import ( "github.com/spf13/viper" ) +const ( + VerifyCost = 100 +) + // NewAnteHandler returns an AnteHandler that checks // and increments sequence numbers, checks signatures, // and deducts fees from the first signer. @@ -134,6 +138,7 @@ func processSig( } // Check sig. + ctx.GasMeter().ConsumeGas(VerifyCost, "ante verify") if !pubKey.VerifyBytes(signBytes, sig.Signature) { return nil, sdk.ErrUnauthorized("signature verification failed").Result() }