Skip to content

Commit

Permalink
perf: disable tx indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
will@2012 committed May 21, 2024
1 parent 91e3a3e commit 08702d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis
}
// Start tx indexer if it's enabled.
if txLookupLimit != nil {

Check failure on line 578 in core/blockchain.go

View workflow job for this annotation

GitHub Actions / golang-lint (1.21.x, ubuntu-latest)

SA9003: empty branch (staticcheck)
bc.txIndexer = newTxIndexer(*txLookupLimit, bc)
// bc.txIndexer = newTxIndexer(*txLookupLimit, bc)
}
return bc, nil
}
Expand Down

0 comments on commit 08702d3

Please sign in to comment.