mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-31 00:53:46 +00:00
adding block size in bytes as a log
This commit is contained in:
parent
b0295085f4
commit
7b79e2ac24
1 changed files with 1 additions and 0 deletions
|
|
@ -589,6 +589,7 @@ func (c *Clique) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *
|
|||
// Assemble and return the final block for sealing.
|
||||
block := types.NewBlock(header, txs, nil, receipts, trie.NewStackTrie(nil))
|
||||
|
||||
log.Info("block_size_in_bytes: %v", int64(block.Size()))
|
||||
if metrics.Enabled {
|
||||
metrics.GetOrRegisterGauge(blockSizeGaugeName, nil).Update(int64(block.Size()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue