core: fix style

This commit is contained in:
Felix Lange 2025-03-21 11:25:13 +01:00
parent e9e5ab1fd8
commit d5c4b484bd

View file

@ -108,7 +108,6 @@ func (indexer *txIndexer) run(head uint64, stop chan struct{}, done chan struct{
from = head - indexer.limit + 1
}
from = max(from, indexer.cutoff)
rawdb.IndexTransactions(indexer.db, from, head+1, stop, true)
return
}
@ -116,7 +115,8 @@ func (indexer *txIndexer) run(head uint64, stop chan struct{}, done chan struct{
// present), while the whole chain are requested for indexing.
if indexer.limit == 0 || head < indexer.limit {
if *tail > 0 {
rawdb.IndexTransactions(indexer.db, max(uint64(0), indexer.cutoff), *tail, stop, true)
from := max(uint64(0), indexer.cutoff)
rawdb.IndexTransactions(indexer.db, from, *tail, stop, true)
}
return
}