Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
manav2401 committed Feb 6, 2025
1 parent a2cff0c commit e01ca8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -2523,9 +2523,11 @@ 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())
log.Info("[debug] insert complete", "number", block.NumberU64(), "err", err)
}

log.Info("[debug] ending loop", "err", err)

// BOR
emitAccum()
// BOR
Expand All @@ -2538,6 +2540,9 @@ func (bc *BlockChain) insertChain(chain types.Blocks, setHead bool) (int, error)
}

block, err = it.next()
if err != nil {
log.Info("[debug] err in it.Next()", "err", err)
}

for ; block != nil && errors.Is(err, consensus.ErrUnknownAncestor); block, err = it.next() {
if err := bc.addFutureBlock(block); err != nil {
Expand Down

0 comments on commit e01ca8c

Please sign in to comment.