From 0f3c1d0d48922e2430042670133e765ae65c7c77 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Thu, 21 Dec 2023 11:00:27 +0800 Subject: [PATCH] core: track the processed ancient blocks --- core/blockchain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/blockchain.go b/core/blockchain.go index 8a3620b2af..4195bcc95f 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1243,6 +1243,7 @@ func (bc *BlockChain) InsertReceiptChain(blockChain types.Blocks, receiptChain [ if err := batch.Write(); err != nil { return 0, err } + stats.processed += int32(len(blockChain)) return 0, nil }