diff --git a/core/blockchain.go b/core/blockchain.go index a87cca6fe5..a3c5e6e314 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -460,6 +460,9 @@ func NewBlockChain(db ethdb.Database, cacheConfig *CacheConfig, genesis *Genesis // Start tx indexer/unindexer if required. if txLookupLimit != nil { bc.txLookupLimit = *txLookupLimit + if bc.cacheConfig.AncientPrune { + bc.txLookupLimit = params.FullImmutabilityThreshold + } bc.wg.Add(1) go bc.maintainTxIndex()