mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
core: fix failing blockchain test
This commit is contained in:
parent
0cf544d8cb
commit
ec9bc845a3
1 changed files with 1 additions and 0 deletions
|
|
@ -485,6 +485,7 @@ func chm(genesis *types.Block, db ethdb.Database) *BlockChain {
|
||||||
bc.bodyRLPCache, _ = lru.New(100)
|
bc.bodyRLPCache, _ = lru.New(100)
|
||||||
bc.blockCache, _ = lru.New(100)
|
bc.blockCache, _ = lru.New(100)
|
||||||
bc.futureBlocks, _ = lru.New(100)
|
bc.futureBlocks, _ = lru.New(100)
|
||||||
|
bc.badBlocks, _ = lru.New(10)
|
||||||
bc.SetValidator(bproc{})
|
bc.SetValidator(bproc{})
|
||||||
bc.SetProcessor(bproc{})
|
bc.SetProcessor(bproc{})
|
||||||
bc.ResetWithGenesisBlock(genesis)
|
bc.ResetWithGenesisBlock(genesis)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue