mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
Merge c56cf90db4 into af28d12847
This commit is contained in:
commit
3e37c0b099
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ func (ethash *Ethash) VerifyHeaders(chain consensus.ChainReader, headers []*type
|
|||
}
|
||||
|
||||
// Spawn as many workers as allowed threads
|
||||
workers := runtime.GOMAXPROCS(0)
|
||||
workers := runtime.NumCPU()
|
||||
if len(headers) < workers {
|
||||
workers = len(headers)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue