adding log to capture block size

This commit is contained in:
kant 2023-11-30 12:32:15 -08:00 committed by Shawn
parent e60e08f695
commit 983f7f7839

View file

@ -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