serve metrics under /metrics

This commit is contained in:
Anton Kaliaev
2018-06-13 22:40:55 +04:00
parent 5c869b5888
commit 3cdf3b670d
3 changed files with 8 additions and 3 deletions

View File

@ -391,8 +391,8 @@ func (cs *ConsensusState) SetProposalAndBlock(proposal *types.Proposal, block *t
// internal functions for managing the state
func (cs *ConsensusState) updateHeight(height int64) {
cs.Height = height
cs.metrics.Height.Add(float64(height - cs.Height))
cs.Height = height
}
func (cs *ConsensusState) updateRoundStep(round int, step cstypes.RoundStepType) {