mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
fix the issue causing the warning log
This commit is contained in:
parent
5a490e98dd
commit
ee630b2bac
1 changed files with 3 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue