Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/state_prefetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (p *statePrefetcher) Prefetch(block *types.Block, statedb *state.StateDB, c
workers errgroup.Group
reader = statedb.Reader()
)
workers.SetLimit(4 * runtime.NumCPU() / 5) // Aggressively run the prefetching
workers.SetLimit(max(1, 4*runtime.NumCPU()/5)) // Aggressively run the prefetching

// Iterate over and process the individual transactions
for i, tx := range block.Transactions() {
Expand Down