plugeth/core
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
..
asm core/asm: Use hexadecimal addresses in assembly dumps (#17870) 2018-10-09 10:27:07 +03:00
bloombits core/bloombits, light: fix typos (#17235) 2018-07-24 11:24:27 +03:00
rawdb core: remove unnecessary fields in logs, receipts and tx lookups (#17106) 2019-02-21 15:14:35 +02:00
state core/state: more memory efficient preimage allocation (#16663) 2019-02-07 10:44:45 +01:00
types core: remove unnecessary fields in logs, receipts and tx lookups (#17106) 2019-02-21 15:14:35 +02:00
vm core/vm: remove unused constants 2019-02-18 07:48:19 -08:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
block_validator_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
block_validator.go core, eth/downloader: fix validation flaw, fix downloader printout flaw (#17974) 2018-11-07 14:47:11 +02:00
blockchain_insert.go cmd/utils, eth: relinquish GC cache to read cache in archive mode 2019-02-07 14:36:25 +02:00
blockchain_test.go core: more tests for sidechain import, fixes #19105 (#19113) 2019-02-21 12:36:49 +02:00
blockchain.go les, les/flowcontrol: improved request serving and flow control (#18230) 2019-02-26 12:32:48 +01:00
blocks.go core: typos and comments improve 2017-05-25 17:14:33 +03:00
chain_indexer_test.go light: CHT and bloom trie indexers working in light mode (#16534) 2018-08-15 22:25:46 +02:00
chain_indexer.go core: use ChainHeadEvent subscription in the chain indexer (#17826) 2018-10-03 17:25:25 +03:00
chain_makers_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
chain_makers.go core: fix pruner panic when importing low-diff-large-sidechain 2019-02-08 11:56:25 +02:00
dao_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
error.go core: make txpool operate on immutable state 2017-09-05 13:34:41 +03:00
events.go miner: regenerate mining work every 3 seconds (#17413) 2018-08-16 14:14:33 +03:00
evm.go core: fix typo in comment code 2018-07-25 18:04:38 +07:00
gaspool.go miner: avoid unnecessary work (#15883) 2018-01-15 12:57:06 +02:00
gen_genesis_account.go all: regenerate codecs with gencodec commit 90983d99de (#15830) 2018-01-08 15:13:22 +02:00
gen_genesis.go all: regenerate codecs with gencodec commit 90983d99de (#15830) 2018-01-08 15:13:22 +02:00
genesis_alloc.go cmd, core, params: add support for Goerli 2019-02-04 14:53:12 +02:00
genesis_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
genesis.go cmd, core, params: add support for Goerli 2019-02-04 14:53:12 +02:00
headerchain.go les: implement ultralight client (#16904) 2019-01-24 12:18:26 +01:00
helper_test.go all: get rid of error when creating memory database (#16716) 2018-05-09 15:24:25 +03:00
mkalloc.go core: refactor genesis handling 2017-03-23 15:58:43 +01:00
state_processor.go core: fix typo in comment (#17586) 2018-09-05 10:29:51 +02:00
state_transition.go core: fix comment typo (#17236) 2018-07-24 13:17:12 +03:00
tx_cacher.go Comment error (#18303) 2018-12-14 11:15:31 +01:00
tx_journal.go core: fix typos in comment (#17531) 2018-08-28 10:04:33 +03:00
tx_list_test.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
tx_list.go core: fix some small typos on comment code (#17278) 2018-07-30 14:10:48 +03:00
tx_pool_test.go core: enforce camel case variable names (#19058) 2019-02-14 21:14:05 +02:00
tx_pool.go core: sanitize more TxPoolConfig fields (#17210) 2018-12-20 14:00:58 +01:00
types.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00