mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-31 17:13:57 +00:00
logs
This commit is contained in:
parent
c3c8279f29
commit
ce59a9b6a1
2 changed files with 6 additions and 3 deletions
|
|
@ -589,7 +589,8 @@ 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))
|
||||
|
||||
fmt.Printf("clique.go block_size_in_bytes: %v", int64(block.Size()))
|
||||
fmt.Println("*************CLIQUE*************************************")
|
||||
fmt.Printf("clique.go block_size_in_bytes: %v\n", int64(block.Size()))
|
||||
if metrics.Enabled {
|
||||
metrics.GetOrRegisterGauge(blockSizeGaugeName, nil).Update(int64(block.Size()))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1122,8 +1122,10 @@ 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()))
|
||||
//log.PrintOrigins(true)
|
||||
//log.Info(fmt.Sprintf("block_size_in_bytes: %v", int64(block.Size())))
|
||||
fmt.Println("********************************************************")
|
||||
fmt.Printf("block_size_in_bytes: %v\n", int64(block.Size()))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue