erigon-pulse/core
Martin Holst Swende e3e00089f4 eth/downloader: refactor downloader + queue (#21263)
* eth/downloader: refactor downloader + queue

downloader, fetcher: throttle-metrics, fetcher filter improvements, standalone resultcache

downloader: more accurate deliverytime calculation, less mem overhead in state requests

downloader/queue: increase underlying buffer of results, new throttle mechanism

eth/downloader: updates to tests

eth/downloader: fix up some review concerns

eth/downloader/queue: minor fixes

eth/downloader: minor fixes after review call

eth/downloader: testcases for queue.go

eth/downloader: minor change, don't set progress unless progress...

eth/downloader: fix flaw which prevented useless peers from being dropped

eth/downloader: try to fix tests

eth/downloader: verify non-deliveries against advertised remote head

eth/downloader: fix flaw with checking closed-status causing hang

eth/downloader: hashing avoidance

eth/downloader: review concerns + simplify resultcache and queue

eth/downloader: add back some locks, address review concerns

downloader/queue: fix remaining lock flaw

* eth/downloader: nitpick fixes

* eth/downloader: remove the *2*3/4 throttling threshold dance

* eth/downloader: print correct throttle threshold in stats

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
# Conflicts:
#	eth/downloader/downloader.go
#	eth/downloader/downloader_test.go
#	eth/downloader/queue.go
#	eth/downloader/statesync.go
#	eth/fetcher/block_fetcher.go
2020-08-07 14:23:49 +02:00
..
asm core/asm: allow numbers in labels (#20362) 2019-12-03 13:55:30 +01:00
bloombits Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
forkid Make cmd/tester initiate staged sync, remove some pools and caches (#746) 2020-07-15 07:15:48 +01:00
rawdb les: historical data garbage collection (#19570) 2020-08-07 13:16:46 +02:00
state cmd/evm: add state transition tool for testing (#20958) 2020-08-07 11:38:07 +02:00
types eth/downloader: refactor downloader + queue (#21263) 2020-08-07 14:23:49 +02:00
vm core/vm: use pointers to operations vs. copy by value 2020-08-07 13:47:25 +02:00
.gitignore Renamed chain => core 2014-12-04 10:28:02 +01:00
bench_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
block_validator_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
block_validator.go GenerateChain without using TrieDbState (#726) 2020-07-09 07:15:28 +01:00
blockchain_insert.go added insertBodies (#695) 2020-06-29 17:26:33 +01:00
blockchain_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
blockchain.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
blocks.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
chain_indexer.go les: historical data garbage collection (#19570) 2020-08-07 13:16:46 +02:00
chain_makers_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
chain_makers.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
dao_test.go les: historical data garbage collection (#19570) 2020-08-07 13:16:46 +02:00
error.go all: fix typos in comments (#21118) 2020-06-15 19:38:13 +03:00
events.go eth/filters: remove use of event.TypeMux for pending logs (#20312) 2020-01-30 13:36:30 +02:00
evm.go RpcDeamon eth_call and eth_estimateGas (#817) 2020-07-29 17:21:34 +01:00
gaspool.go miner: avoid unnecessary work (#15883) 2018-01-15 12:57:06 +02:00
gen_genesis_account.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
gen_genesis.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
generate_index_test.go Use datadir for temp files when generating indexes 2020-08-02 12:32:41 +02:00
generate_index.go Use datadir for temp files when generating indexes 2020-08-02 12:32:41 +02:00
genesis_alloc.go cmd, core, params: inital support for yolo-v1 testnet (#21154) 2020-06-15 19:38:13 +03:00
genesis_test.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
genesis.go core: raise gas limit in --dev mode, seed blake precompile (#21323) 2020-08-07 13:46:40 +02:00
headerchain.go wait for verify_headers method (#793) 2020-07-27 19:26:24 +07:00
mkalloc.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
pruner_test.go close db in tests (#669) 2020-06-16 12:05:40 +07:00
pruner.go Migrations: use stage name as db key (#868) 2020-08-05 17:13:35 +07:00
rlp_test.go Speed up GenerateChain by using intermediate hashes (#736) 2020-07-10 22:37:34 +01:00
skip_analysis.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
state_prefetcher.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
state_processor.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00
state_transition.go [GC] uint256 rather than big.Int in Transaction (#614) 2020-06-04 08:43:08 +01:00
tx_cacher.go Grpc-based remoteDb (#788) 2020-07-27 19:15:48 +07:00
tx_journal.go Apply Turbo-Geth modifications to go-ethereum codebase 2019-11-01 21:52:03 +01:00
tx_list_test.go Revert "core, txpool: less allocations when handling transactions (#21232)" 2020-08-07 12:52:34 +02:00
tx_list.go core: transaction pool optimizations (#21328) 2020-08-07 13:23:40 +02:00
tx_noncer.go Remove Copy from IntraBlockState and use references instead of copies in other places. 2019-11-07 13:32:20 +01:00
tx_pool_test.go core: fix heartbeat in txpool 2020-08-07 13:53:54 +02:00
tx_pool.go core: fix heartbeat in txpool 2020-08-07 13:53:54 +02:00
types.go Jumpdest skip optimisation (#851) 2020-08-01 17:56:57 +01:00