• Felix Lange's avatar
    eth/downloader: speed up tests by generating chain only once (#17916) · 0bcff8f5
    Felix Lange authored
    * 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.
    0bcff8f5
Name
Last commit
Last update
..
api.go Loading commit data...
downloader.go Loading commit data...
downloader_test.go Loading commit data...
events.go Loading commit data...
fakepeer.go Loading commit data...
metrics.go Loading commit data...
modes.go Loading commit data...
peer.go Loading commit data...
queue.go Loading commit data...
statesync.go Loading commit data...
testchain_test.go Loading commit data...
types.go Loading commit data...