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 }