Skip to content

Commit bb8dac1

Browse files
committed
Record nonce metrics for Jeffy VM
1 parent 99a1f50 commit bb8dac1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/code/async/nonce/metrics.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ func (p *service) metricsGaugeWorker(ctx context.Context) error {
3939
}
4040
recordNonceCountEvent(ctx, nonce.EnvironmentCvm, common.CodeVmAccount.PublicKey().ToBase58(), state, nonce.PurposeClientTransaction, count)
4141

42+
count, err = p.data.GetNonceCountByStateAndPurpose(ctx, nonce.EnvironmentCvm, "Bii3UFB9DzPq6UxgewF5iv9h1Gi8ZnP6mr7PtocHGNta", state, nonce.PurposeClientTransaction)
43+
if err != nil {
44+
continue
45+
}
46+
recordNonceCountEvent(ctx, nonce.EnvironmentCvm, common.CodeVmAccount.PublicKey().ToBase58(), state, nonce.PurposeClientTransaction, count)
47+
4248
count, err = p.data.GetNonceCountByStateAndPurpose(ctx, nonce.EnvironmentSolana, nonce.EnvironmentInstanceSolanaMainnet, state, nonce.PurposeOnDemandTransaction)
4349
if err != nil {
4450
continue

0 commit comments

Comments
 (0)