aboutsummaryrefslogtreecommitdiffstats
path: root/les/flowcontrol
Commit message (Collapse)AuthorAgeFilesLines
* all: update author list and licensesPéter Szilágyi2019-07-223-3/+3
|
* les, les/flowcontrol: implement LES/3 (#19329)Felföldi Zsolt2019-05-313-90/+226
| | | les, les/flowcontrol: implement LES/3
* les, les/flowcontrol: improved request serving and flow control (#18230)Felföldi Zsolt2019-02-264-239/+777
| | | | | | | | | | | | | | | | | | | | | | | | | | This change - implements concurrent LES request serving even for a single peer. - replaces the request cost estimation method with a cost table based on benchmarks which gives much more consistent results. Until now the allowed number of light peers was just a guess which probably contributed a lot to the fluctuating quality of available service. Everything related to request cost is implemented in a single object, the 'cost tracker'. It uses a fixed cost table with a global 'correction factor'. Benchmark code is included and can be run at any time to adapt costs to low-level implementation changes. - reimplements flowcontrol.ClientManager in a cleaner and more efficient way, with added capabilities: There is now control over bandwidth, which allows using the flow control parameters for client prioritization. Target utilization over 100 percent is now supported to model concurrent request processing. Total serving bandwidth is reduced during block processing to prevent database contention. - implements an RPC API for the LES servers allowing server operators to assign priority bandwidth to certain clients and change prioritized status even while the client is connected. The new API is meant for cases where server operators charge for LES using an off-protocol mechanism. - adds a unit test for the new client manager. - adds an end-to-end test using the network simulator that tests bandwidth control functions through the new API.
* remove a no-op line in the code (#17760)zah2018-11-291-1/+0
|
* les: fix megacheck warnings (#14941)Felföldi Zsolt2017-08-091-3/+1
| | | | | | * les: fix megacheck warnings * les: fixed testGetProofs
* les: implement request distributor, fix blocking issues (#3660)Felföldi Zsolt2017-03-231-79/+25
| | | | | * les: implement request distributor, fix blocking issues * core: moved header validation before chain mutex lock
* Merge pull request #3519 from zsfelfoldi/light-topic5Péter Szilágyi2017-01-092-48/+114
|\ | | | | les: fixed selectPeer deadlock, improved request distribution
| * les: fixed selectPeer deadlock, improved request distributionZsolt Felfoldi2017-01-062-48/+114
| | | | | | | | les/flowcontrol: using proper types for relative and absolute times
* | all: gofmt -w -sFelix Lange2017-01-061-3/+3
|/
* les/flowcontrol: fixed locking schemeZsolt Felfoldi2016-11-141-4/+7
|
* all: update license informationFelix Lange2016-11-092-2/+2
|
* les: light client protocol and APIZsolt Felfoldi2016-11-092-0/+395