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>
Showing
- core/types/block.go 11 additions, 0 deletionscore/types/block.go
- eth/downloader/downloader.go 55 additions, 33 deletionseth/downloader/downloader.go
- eth/downloader/downloader_test.go 19 additions, 20 deletionseth/downloader/downloader_test.go
- eth/downloader/metrics.go 2 additions, 0 deletionseth/downloader/metrics.go
- eth/downloader/peer.go 56 additions, 33 deletionseth/downloader/peer.go
- eth/downloader/peer_test.go 53 additions, 0 deletionseth/downloader/peer_test.go
- eth/downloader/queue.go 237 additions, 225 deletionseth/downloader/queue.go
- eth/downloader/queue_test.go 426 additions, 0 deletionseth/downloader/queue_test.go
- eth/downloader/resultstore.go 194 additions, 0 deletionseth/downloader/resultstore.go
- eth/downloader/statesync.go 17 additions, 15 deletionseth/downloader/statesync.go
- eth/fetcher/block_fetcher.go 40 additions, 29 deletionseth/fetcher/block_fetcher.go
Loading
Please register or sign in to comment