plugeth/eth/downloader
Felix Lange 0bcff8f525
eth/downloader: speed up tests by generating chain only once (#17916)
* core: speed up GenerateChain

Use a mock implementation of ChainReader instead of creating
and destroying a BlockChain object for each generated block.

* eth/downloader: speed up tests by generating chain only once

This change reworks the downloader tests so they share a common test
blockchain instead of generating a chain in every test. The tests are
roughly twice as fast now.
2018-11-07 15:07:43 +01:00
..
api.go core, eth: fix goimports for Go 1.11 2018-09-19 11:47:09 +03:00
downloader_test.go eth/downloader: speed up tests by generating chain only once (#17916) 2018-11-07 15:07:43 +01:00
downloader.go core, eth/downloader: fix validation flaw, fix downloader printout flaw (#17974) 2018-11-07 14:47:11 +02:00
events.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
fakepeer.go core/rawdb: separate raw database access to own package (#16666) 2018-05-07 14:35:06 +03:00
metrics.go metrics: pull library and introduce ResettingTimer and InfluxDB reporter (#15910) 2018-02-23 11:56:08 +02:00
modes.go cmd/geth: add --config file flag (#13875) 2017-04-12 17:27:23 +03:00
peer.go eth/downloader: SetBlocksIdle is not used (#17962) 2018-10-24 01:27:49 +02:00
queue.go eth/downloader: remove the expired id directly (#17963) 2018-11-07 15:30:19 +02:00
statesync.go downloader: measure successfull deliveries, not failed (#17983) 2018-11-07 14:18:07 +02:00
testchain_test.go eth/downloader: speed up tests by generating chain only once (#17916) 2018-11-07 15:07:43 +01:00
types.go eth: conform better to the golint standards (#16783) 2018-06-14 13:14:52 +03:00