aboutsummaryrefslogtreecommitdiffstats
path: root/internal/cmdtest
diff options
context:
space:
mode:
authorFelix Lange <fjl@users.noreply.github.com>2018-11-07 22:07:43 +0800
committerGitHub <noreply@github.com>2018-11-07 22:07:43 +0800
commit0bcff8f52505fa1eece6c8fbfc5cab8aa9d9ed5d (patch)
tree58ca06c4e7a74b586214b62d879101bc98d970e3 /internal/cmdtest
parent36ca85fa1c2936087b2c3d976d3576f0f5d2157e (diff)
downloaddexon-0bcff8f52505fa1eece6c8fbfc5cab8aa9d9ed5d.tar.gz
dexon-0bcff8f52505fa1eece6c8fbfc5cab8aa9d9ed5d.tar.zst
dexon-0bcff8f52505fa1eece6c8fbfc5cab8aa9d9ed5d.zip
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.
Diffstat (limited to 'internal/cmdtest')
0 files changed, 0 insertions, 0 deletions