les: limit LES peer count and improve peer configuration logic (#16010)
* les: limit number of LES connections * eth, cmd/utils: light vs max peer configuration logic
This commit is contained in:
committed by
Péter Szilágyi
parent
bc0666fb27
commit
c3f238dd53
@ -176,7 +176,7 @@ func newTestProtocolManager(lightSync bool, blocks int, generator func(int, *cor
|
||||
srv.fcManager = flowcontrol.NewClientManager(50, 10, 1000000000)
|
||||
srv.fcCostStats = newCostStats(nil)
|
||||
}
|
||||
pm.Start()
|
||||
pm.Start(1000)
|
||||
return pm, nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user