Skip to content

Commit 13a3406

Browse files
authored
Revert "Add metrics: blockFinalizationTime (#1150)" (#1155)
This reverts commit 968d089.
1 parent b5865fb commit 13a3406

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

miner/worker.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ import (
3737
"github.com/ethereum/go-ethereum/ethdb"
3838
"github.com/ethereum/go-ethereum/event"
3939
"github.com/ethereum/go-ethereum/log"
40-
"github.com/ethereum/go-ethereum/metrics"
4140
"github.com/ethereum/go-ethereum/params"
4241
)
4342

@@ -84,9 +83,6 @@ const (
8483
var (
8584
randomSeedString = []byte("Randomness seed string")
8685
randomSeed []byte
87-
88-
// Timer used to measure block finalization time from created to finalized
89-
blockFinalizationTimer = metrics.NewRegisteredTimer("miner/block/finalization", nil)
9086
)
9187

9288
// environment is the worker's current environment and holds all of the current state information.
@@ -592,7 +588,6 @@ func (w *worker) resultLoop() {
592588
logs = append(logs, receipt.Logs...)
593589
}
594590
// Commit block and state to database.
595-
blockFinalizationTimer.UpdateSince(time.Unix(int64(block.Time()), 0))
596591
_, err := w.chain.WriteBlockWithState(block, receipts, logs, task.state, true)
597592
if err != nil {
598593
log.Error("Failed writing block to chain", "err", err)

0 commit comments

Comments
 (0)