mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 01:27:38 +00:00
Fix deadlock (#1401)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
parent
20b3824cf6
commit
0e6d628acd
@ -146,7 +146,11 @@ func (ethash *Ethash) VerifyHeaders(chain consensus.ChainHeaderReader, headers [
|
|||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
for index := range inputs {
|
for index := range inputs {
|
||||||
errors[index] = ethash.verifyHeaderWorker(chain, headers, seals, index)
|
errors[index] = ethash.verifyHeaderWorker(chain, headers, seals, index)
|
||||||
done <- index
|
select {
|
||||||
|
case done <- index:
|
||||||
|
case <-abort:
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user