Skip to content

Commit

Permalink
Fix metric name from PR #12430 (#12445)
Browse files Browse the repository at this point in the history
* Fix metric name from PR #12430

* @potuz can't spell 'unknown'

---------

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
  • Loading branch information
prestonvanloon and prylabs-bulldozer[bot] committed May 22, 2023
1 parent e0e7c71 commit 7fe935e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/sync/metrics.go
Expand Up @@ -127,9 +127,9 @@ var (
)

// Sync committee verification performance.
syncMessagesForUnkownBlocks = promauto.NewCounter(
syncMessagesForUnknownBlocks = promauto.NewCounter(
prometheus.CounterOpts{
Name: "sync_committee_messages_unnkown_root",
Name: "sync_committee_messages_unknown_root",
Help: "The number of sync committee messages that are checked against DB to see if there vote is for an unknown root",
},
)
Expand Down
4 changes: 2 additions & 2 deletions beacon-chain/sync/validate_sync_committee_message.go
Expand Up @@ -141,12 +141,12 @@ func (s *Service) hasSeenSyncMessageIndexSlot(ctx context.Context, m *ethpb.Sync
return true // Impossible. Return true to be safe
}
if !s.cfg.chain.InForkchoice(root) && !s.cfg.beaconDB.HasBlock(ctx, root) {
syncMessagesForUnkownBlocks.Inc()
syncMessagesForUnknownBlocks.Inc()
return true
}
msgRoot := [32]byte(m.BlockRoot)
if !s.cfg.chain.InForkchoice(msgRoot) && !s.cfg.beaconDB.HasBlock(ctx, msgRoot) {
syncMessagesForUnkownBlocks.Inc()
syncMessagesForUnknownBlocks.Inc()
return false
}
headRoot := s.cfg.chain.CachedHeadRoot()
Expand Down

0 comments on commit 7fe935e

Please sign in to comment.