op-geth/cmd/geth
Felföldi Zsolt c2003ed63b les, les/flowcontrol: improved request serving and flow control (#18230)
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.
2019-02-26 12:32:48 +01:00
..
testdata cmd/geth: add tests for account commands 2016-04-12 15:58:07 +02:00
accountcmd.go cmd: various golint fixes (#16700) 2018-05-09 10:38:03 +03:00
accountcmd_test.go cmd, consensus, core, miner: instatx clique for --dev (#15323) 2017-10-24 13:40:42 +03:00
bugcmd.go build: rename swarm deb package to ethereum-swarm; change swarm deb version from 1.8.x to 0.3.x (#16988) 2018-07-30 11:56:40 +03:00
chaincmd.go cmd, node, p2p/simulations: fix node account manager leak (#19004) 2019-02-07 12:40:36 +02:00
config.go les: implement ultralight client (#16904) 2019-01-24 12:18:26 +01:00
consolecmd.go cmd, node, p2p/simulations: fix node account manager leak (#19004) 2019-02-07 12:40:36 +02:00
consolecmd_test.go consensus/ethash: move remote agent logic to ethash internal (#15853) 2018-08-03 11:33:37 +03:00
dao_test.go core/rawdb: separate raw database access to own package (#16666) 2018-05-07 14:35:06 +03:00
genesis_test.go cmd/geth: remove the tail "," from genesis config (#17028) 2018-06-21 10:44:39 +03:00
main.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
misccmd.go build: rename swarm deb package to ethereum-swarm; change swarm deb version from 1.8.x to 0.3.x (#16988) 2018-07-30 11:56:40 +03:00
monitorcmd.go cmd: prefer nil slices over zero-length slices (#19077) 2019-02-15 01:02:11 +02:00
run_test.go swarm/test: add integration test for 'swarm up' (#14353) 2017-06-21 14:54:23 +02:00
usage.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00