From 1ae534ae4135f8737eb73fa2f7c224c20ae3a8dc Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Wed, 13 Dec 2023 13:53:17 +0100 Subject: [PATCH] output witness summary in log statement --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 118949ae80..04ed4ac824 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1854,7 +1854,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error) } statedb.GetWitness().SetBlock(block) - fmt.Printf("block %d summary:\n%s", block.NumberU64(), statedb.GetWitness().Summary()) + log.Info(fmt.Sprintf("block %d summary:\n%s", block.NumberU64(), statedb.GetWitness().Summary())) //state.DumpBlockWithWitnessToFile(statedb.GetWitness(), block) followupInterrupt.Store(true)