mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
genesis head remaining number sould be zero
This commit is contained in:
parent
acd1eaae2c
commit
f5f6b5cd9c
1 changed files with 3 additions and 0 deletions
|
|
@ -176,6 +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
|
||||
|
|
|
|||
Loading…
Reference in a new issue