This commit is contained in:
Martin Holst Swende 2018-05-31 12:12:03 +00:00 committed by GitHub
commit 3e37c0b099
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -98,7 +98,7 @@ func (ethash *Ethash) VerifyHeaders(chain consensus.ChainReader, headers []*type
} }
// Spawn as many workers as allowed threads // Spawn as many workers as allowed threads
workers := runtime.GOMAXPROCS(0) workers := runtime.NumCPU()
if len(headers) < workers { if len(headers) < workers {
workers = len(headers) workers = len(headers)
} }