core: track the processed ancient blocks

This commit is contained in:
Gary Rong 2023-12-21 11:00:27 +08:00
parent 93d7029756
commit 0f3c1d0d48

View file

@ -1243,6 +1243,7 @@ func (bc *BlockChain) InsertReceiptChain(blockChain types.Blocks, receiptChain [
if err := batch.Write(); err != nil { if err := batch.Write(); err != nil {
return 0, err return 0, err
} }
stats.processed += int32(len(blockChain))
return 0, nil return 0, nil
} }