From c244b5fbb945f786ef6dc8a10ffe1f9ebfd17c2c Mon Sep 17 00:00:00 2001 From: kant Date: Thu, 30 Nov 2023 17:52:50 -0800 Subject: [PATCH] removing blocksize metric from worker --- miner/worker.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 9788e60780..fd4708ddb0 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -19,7 +19,6 @@ package miner import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/metrics" "math/big" "sync" "sync/atomic" @@ -78,8 +77,6 @@ var ( errBlockInterruptedByNewHead = errors.New("new head arrived while building block") errBlockInterruptedByRecommit = errors.New("recommit interrupt while building block") errBlockInterruptedByTimeout = errors.New("timeout while building block") - - blockSizeGaugeName = "clique/block_size_in_bytes" ) // environment is the worker's current environment and holds all @@ -1125,9 +1122,6 @@ func (w *worker) commit(env *environment, interval func(), update bool, start ti env := env.copy() // Withdrawals are set to nil here, because this is only called in PoW. block, err := w.engine.FinalizeAndAssemble(w.chain, env.header, env.state, env.txs, nil, env.receipts, nil) - if metrics.Enabled { - metrics.GetOrRegisterGauge(blockSizeGaugeName, nil).Update(int64(block.Size())) - } if err != nil { return err }