From d5c4b484bdaf4f61c78393b1ed6943c7e5a41ebe Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 21 Mar 2025 11:25:13 +0100 Subject: [PATCH] core: fix style --- core/txindexer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/txindexer.go b/core/txindexer.go index 20bb7fbe5c..29e87905d5 100644 --- a/core/txindexer.go +++ b/core/txindexer.go @@ -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 }