Skip to content

Commit

Permalink
metrics: add counter for voting status of whole network (#1720)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBSC authored Jun 20, 2023
1 parent acd2f5f commit f455263
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,7 @@ func (p *Parlia) VerifyVote(chain consensus.ChainHeaderReader, vote *types.VoteE
if addr == p.val {
validVotesfromSelfCounter.Inc(1)
}
metrics.GetOrRegisterCounter(fmt.Sprintf("parlia/VerifyVote/%s", addr.String()), nil).Inc(1)
return nil
}
}
Expand Down

0 comments on commit f455263

Please sign in to comment.