From 0186bb373d60cae04ddd6d0f48507b0b5fce60d2 Mon Sep 17 00:00:00 2001 From: maskpp Date: Tue, 23 Apr 2024 14:43:08 +0800 Subject: [PATCH] genesis head remaining number sould be zero --- core/txindexer.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/txindexer.go b/core/txindexer.go index 600e8034d7..80831ed56c 100644 --- a/core/txindexer.go +++ b/core/txindexer.go @@ -176,12 +176,9 @@ func (indexer *txIndexer) loop(chain *BlockChain) { // report returns the tx indexing progress. func (indexer *txIndexer) report(head uint64, tail *uint64) TxIndexProgress { - if head == 0 { - return TxIndexProgress{} - } total := indexer.limit if indexer.limit == 0 || total > head { - total = head + 1 // genesis included + total = head } var indexed uint64 if tail != nil {