Revert "core: improve the prefetcher concurrency allowance"

This reverts commit 4ed539f88e.
This commit is contained in:
Csaba Kiraly 2025-06-20 20:01:39 +02:00
parent 0cceb45d68
commit 9c8ad7e372
No known key found for this signature in database
GPG key ID: 0FE274EE8C95166E

View file

@ -57,7 +57,7 @@ func (p *statePrefetcher) Prefetch(block *types.Block, statedb *state.StateDB, c
workers errgroup.Group workers errgroup.Group
reader = statedb.Reader() reader = statedb.Reader()
) )
workers.SetLimit(4 * runtime.NumCPU() / 5) // Aggressively run the prefetching workers.SetLimit(runtime.NumCPU() / 2)
// Iterate over and process the individual transactions // Iterate over and process the individual transactions
for i, tx := range block.Transactions() { for i, tx := range block.Transactions() {