diff --git a/consensus/metrics.go b/consensus/metrics.go index 48d1a603b..6bab7759b 100644 --- a/consensus/metrics.go +++ b/consensus/metrics.go @@ -7,7 +7,6 @@ import ( "github.com/go-kit/kit/metrics" "github.com/go-kit/kit/metrics/discard" cstypes "github.com/tendermint/tendermint/consensus/types" - "github.com/tendermint/tendermint/types" prometheus "github.com/go-kit/kit/metrics/prometheus" stdprometheus "github.com/prometheus/client_golang/prometheus" @@ -290,14 +289,6 @@ func NopMetrics() *Metrics { } } -// RecordConsMetrics uses for recording the block related metrics during fast-sync. -func (m *Metrics) RecordConsMetrics(block *types.Block) { - m.NumTxs.Set(float64(len(block.Data.Txs))) - m.TotalTxs.Add(float64(len(block.Data.Txs))) - m.BlockSizeBytes.Set(float64(block.Size())) - m.CommittedHeight.Set(float64(block.Height)) -} - func (m *Metrics) MarkRound(r int32, st time.Time) { m.Rounds.Set(float64(r)) roundTime := time.Since(st).Seconds()