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.
This commit is contained in:
Felix Lange
2018-11-07 15:07:43 +01:00
committed by GitHub
parent 36ca85fa1c
commit 0bcff8f525
3 changed files with 520 additions and 561 deletions

File diff suppressed because it is too large Load Diff