mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
Merge pull request #55 from DeBankDeFi/merge_upstream_v1.11.0
adjust history block pruning logic to mitigate the warning log
This commit is contained in:
commit
1a24176468
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