@@ -62,23 +62,23 @@ func (handler *DecryptionKeyHandler) ValidateMessage(ctx context.Context, msg p2
62
62
63
63
dkgResultDB , err := queries .GetDKGResultForKeyperConfigIndex (ctx , eon )
64
64
if errors .Is (err , pgx .ErrNoRows ) {
65
- keypermetrics .MetricsKeyperSuccessfullDKG .WithLabelValues (strconv .FormatInt (eon , 10 )).Set (0 )
65
+ keypermetrics .MetricsKeyperSuccessfulDKG .WithLabelValues (strconv .FormatInt (eon , 10 )).Set (0 )
66
66
return pubsub .ValidationReject , errors .Errorf ("no DKG result found for eon %d" , eon )
67
67
}
68
68
if err != nil {
69
- keypermetrics .MetricsKeyperSuccessfullDKG .WithLabelValues (strconv .FormatInt (eon , 10 )).Set (0 )
69
+ keypermetrics .MetricsKeyperSuccessfulDKG .WithLabelValues (strconv .FormatInt (eon , 10 )).Set (0 )
70
70
return pubsub .ValidationReject , errors .Wrapf (err , "failed to get dkg result for eon %d from db" , eon )
71
71
}
72
72
if ! dkgResultDB .Success {
73
- keypermetrics .MetricsKeyperSuccessfullDKG .WithLabelValues (strconv .FormatInt (eon , 10 )).Set (0 )
73
+ keypermetrics .MetricsKeyperSuccessfulDKG .WithLabelValues (strconv .FormatInt (eon , 10 )).Set (0 )
74
74
return pubsub .ValidationReject , errors .Errorf ("no successful DKG result found for eon %d" , eon )
75
75
}
76
76
pureDKGResult , err := shdb .DecodePureDKGResult (dkgResultDB .PureResult )
77
77
if err != nil {
78
78
return pubsub .ValidationReject , errors .Wrapf (err , "error while decoding pure DKG result for eon %d" , eon )
79
79
}
80
80
81
- keypermetrics .MetricsKeyperSuccessfullDKG .WithLabelValues (strconv .FormatInt (eon , 10 )).Set (1 )
81
+ keypermetrics .MetricsKeyperSuccessfulDKG .WithLabelValues (strconv .FormatInt (eon , 10 )).Set (1 )
82
82
if len (decryptionKeys .Keys ) == 0 {
83
83
return pubsub .ValidationReject , errors .New ("no keys in message" )
84
84
}
0 commit comments