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 {