Compare commits

...

2 Commits

Author SHA1 Message Date
Potuz
32e1273546 Only ingrease hit-valid if there is no error 2024-03-17 17:39:02 -03:00
Potuz
7d750dbc40 Rename mispelled variable 2024-03-17 17:35:51 -03:00
2 changed files with 4 additions and 4 deletions

View File

@@ -190,15 +190,15 @@ func (bv *ROBlobVerifier) ValidProposerSignature(ctx context.Context) (err error
// First check if there is a cached verification that can be reused.
seen, err := bv.sc.SignatureVerified(sd)
if seen {
blobVerifiationProposerSignatureCache.WithLabelValues("hit-valid").Inc()
if err != nil {
log.WithFields(logging.BlobFields(bv.blob)).WithError(err).Debug("reusing failed proposer signature validation from cache")
blobVerifiationProposerSignatureCache.WithLabelValues("hit-invalid").Inc()
blobVerificationProposerSignatureCache.WithLabelValues("hit-invalid").Inc()
return ErrInvalidProposerSignature
}
blobVerificationProposerSignatureCache.WithLabelValues("hit-valid").Inc()
return nil
}
blobVerifiationProposerSignatureCache.WithLabelValues("miss").Inc()
blobVerificationProposerSignatureCache.WithLabelValues("miss").Inc()
// Retrieve the parent state to fallback to full verification.
parent, err := bv.parentState(ctx)

View File

@@ -6,7 +6,7 @@ import (
)
var (
blobVerifiationProposerSignatureCache = promauto.NewCounterVec(
blobVerificationProposerSignatureCache = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "blob_verification_proposer_signature_cache",
Help: "BlobSidecar proposer signature cache result.",