Unexport verifyCost

This commit is contained in:
Christopher Goes 2018-05-15 16:23:57 +02:00
parent 396bf74b9f
commit 4775437426
No known key found for this signature in database
GPG Key ID: E828D98232D328D3

View File

@ -9,7 +9,7 @@ import (
)
const (
VerifyCost = 100
verifyCost = 100
)
// NewAnteHandler returns an AnteHandler that checks
@ -138,7 +138,7 @@ func processSig(
}
// Check sig.
ctx.GasMeter().ConsumeGas(VerifyCost, "ante verify")
ctx.GasMeter().ConsumeGas(verifyCost, "ante verify")
if !pubKey.VerifyBytes(signBytes, sig.Signature) {
return nil, sdk.ErrUnauthorized("signature verification failed").Result()
}