Skip to content

Commit

Permalink
Fix bug when tracking missed blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
tdahar committed Sep 15, 2023
1 parent 3f17ca0 commit 7e861a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/analyzer/process_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ loop:
log.Debugf("Writing epoch metrics to DB for slot %d...", task.State.Slot)
// create a model to be inserted into the db, we only insert previous epoch metrics

missedBlocks := stateMetrics.GetMetricsBase().CurrentState.MissedBlocks
missedBlocks := stateMetrics.GetMetricsBase().NextState.MissedBlocks
// take into accoutn epoch transition
nextMissedBlock := stateMetrics.GetMetricsBase().NextState.TrackPrevMissingBlock()
if nextMissedBlock != 0 {
Expand Down

0 comments on commit 7e861a6

Please sign in to comment.