mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
discovery+routing: reduce number of active validation barrier jobs
In order to reduce high CPU utilization during the initial network view sync, we slash down the total number of active in-flight jobs that can be launched.
This commit is contained in:
@@ -833,7 +833,7 @@ func (d *AuthenticatedGossiper) networkHandler() {
|
||||
// We'll use this validation to ensure that we process jobs in their
|
||||
// dependency order during parallel validation.
|
||||
validationBarrier := routing.NewValidationBarrier(
|
||||
runtime.NumCPU()*10, d.quit,
|
||||
runtime.NumCPU()*4, d.quit,
|
||||
)
|
||||
|
||||
for {
|
||||
|
Reference in New Issue
Block a user