mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
don't check tail
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
4273f24875
commit
60b2862a6b
1 changed files with 2 additions and 3 deletions
|
|
@ -2398,10 +2398,9 @@ func (bc *BlockChain) maintainTxIndex() {
|
|||
// useful in these scenarios that chain has no progress and indexer
|
||||
// is never triggered.
|
||||
head := rawdb.ReadHeadBlock(bc.db)
|
||||
tail := rawdb.ReadTxIndexTail(bc.db)
|
||||
if head != nil && tail != nil {
|
||||
if head != nil {
|
||||
done = make(chan struct{})
|
||||
bc.indexBlocks(tail, head.NumberU64(), done)
|
||||
go bc.indexBlocks(rawdb.ReadTxIndexTail(bc.db), head.NumberU64(), done)
|
||||
}
|
||||
|
||||
for {
|
||||
|
|
|
|||
Loading…
Reference in a new issue