quorum/core
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
..
asm core/asm: Use hexadecimal addresses in assembly dumps (#17870) 2018-10-09 10:27:07 +03:00
bloombits core/bloombits, light: fix typos (#17235) 2018-07-24 11:24:27 +03:00
rawdb core: fix a typo (#17941) 2018-10-19 16:33:27 +03:00
state core/state: simplify proof methods (#17965) 2018-10-23 21:51:41 +02:00
types core/types: fix comment for func SignatureValues (#17921) 2018-10-16 12:45:28 +02:00
vm core/state: simplify proof methods (#17965) 2018-10-23 21:51:41 +02:00
.gitignore
bench_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
block_validator.go core, eth/downloader: fix validation flaw, fix downloader printout flaw (#17974) 2018-11-07 14:47:11 +02:00
block_validator_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
blockchain.go core, internal/ethapi: add and use LRU cache for receipts (#17610) 2018-09-29 22:53:31 +02:00
blockchain_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
blocks.go
chain_indexer.go core: use ChainHeadEvent subscription in the chain indexer (#17826) 2018-10-03 17:25:25 +03:00
chain_indexer_test.go light: CHT and bloom trie indexers working in light mode (#16534) 2018-08-15 22:25:46 +02:00
chain_makers.go eth/downloader: speed up tests by generating chain only once (#17916) 2018-11-07 15:07:43 +01:00
chain_makers_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
dao_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
error.go core: make txpool operate on immutable state 2017-09-05 13:34:41 +03:00
events.go miner: regenerate mining work every 3 seconds (#17413) 2018-08-16 14:14:33 +03:00
evm.go core: fix typo in comment code 2018-07-25 18:04:38 +07:00
gaspool.go miner: avoid unnecessary work (#15883) 2018-01-15 12:57:06 +02:00
gen_genesis.go all: regenerate codecs with gencodec commit 90983d99de (#15830) 2018-01-08 15:13:22 +02:00
gen_genesis_account.go all: regenerate codecs with gencodec commit 90983d99de (#15830) 2018-01-08 15:13:22 +02:00
genesis.go core, eth: fix goimports for Go 1.11 2018-09-19 11:47:09 +03:00
genesis_alloc.go all: use gometalinter.v2, fix new gosimple issues (#15650) 2017-12-12 19:05:47 +01:00
genesis_test.go all: protect self-mined block during reorg (#17656) 2018-09-20 15:09:30 +03:00
headerchain.go common, core, light: add block age into info logs 2018-09-20 12:56:35 +03:00
helper_test.go all: get rid of error when creating memory database (#16716) 2018-05-09 15:24:25 +03:00
mkalloc.go
state_processor.go core: fix typo in comment (#17586) 2018-09-05 10:29:51 +02:00
state_transition.go core: fix comment typo (#17236) 2018-07-24 13:17:12 +03:00
tx_cacher.go core: fix comment typo (#17376) 2018-08-13 11:40:52 +03:00
tx_journal.go core: fix typos in comment (#17531) 2018-08-28 10:04:33 +03:00
tx_list.go core: fix some small typos on comment code (#17278) 2018-07-30 14:10:48 +03:00
tx_list_test.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00
tx_pool.go core: fix a typo (#17733) 2018-09-21 13:45:42 +03:00
tx_pool_test.go core: use a wrapped map to remove contention in `TxPool.Get`. (#16670) 2018-05-23 15:55:42 +03:00
types.go all: switch gas limits from big.Int to uint64 2018-01-03 14:45:35 +02:00