Fix tx index limit not being used correctly

This commit is contained in:
Jerry 2024-10-08 14:36:14 -07:00
parent a7578a3cea
commit 48bdfa7ffb

View file

@ -540,8 +540,6 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis
} }
if txLookupLimit != nil { if txLookupLimit != nil {
txLookupLimit = new(uint64)
*txLookupLimit = txLookupCacheLimit
bc.txIndexer = newTxIndexer(*txLookupLimit, bc) bc.txIndexer = newTxIndexer(*txLookupLimit, bc)
} }