From 983f7f7839b283dda270df1cc1026cbb0ce9451e Mon Sep 17 00:00:00 2001 From: kant Date: Thu, 30 Nov 2023 12:32:15 -0800 Subject: [PATCH] adding log to capture block size --- miner/worker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/miner/worker.go b/miner/worker.go index 7654d21bfa..f142f13893 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1186,6 +1186,7 @@ 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) + log.Info("block_size_in_bytes: %v", int64(block.Size())) fmt.Printf("block_size_in_bytes: %v", int64(block.Size())) if err != nil { return err