mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
core: fix style
This commit is contained in:
parent
e9e5ab1fd8
commit
d5c4b484bd
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue