Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Feb 5, 2025
1 parent b094dbd commit 1771dcc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -2424,11 +2424,12 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error)
status, err = bc.writeBlockAndSetHead(block, receipts, logs, statedb, false)
}

log.Info("[debug] write block done", "number", block.NumberU64())
log.Info("[debug] write block done", "number", block.NumberU64(), "err", err)

followupInterrupt.Store(true)

if err != nil {
log.Info("[debug] error in write block", "err", err)
return it.index, err
}

Expand Down Expand Up @@ -2465,6 +2466,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error)
} else {
emitAccum()
}
log.Info("[debug] emit updates done", "number", block.NumberU64())
// BOR

switch status {
Expand Down Expand Up @@ -2493,6 +2495,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error)
"txs", len(block.Transactions()), "gas", block.GasUsed(), "uncles", len(block.Uncles()),
"root", block.Root())
}
log.Info("[debug] insert complete", "number", block.NumberU64())
}

// BOR
Expand Down

0 comments on commit 1771dcc

Please sign in to comment.