diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-18 23:46:47 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-19 00:16:53 +0800 |
commit | 40717465bc8c0e2feb0f1e48ddc721c7292ba992 (patch) | |
tree | 95a5564b8048f22cf22705acbd9a82067be4e473 /core/chain_makers.go | |
parent | 59c0d014189db1b85f45ef17f458bcbc20c267b2 (diff) | |
download | dexon-40717465bc8c0e2feb0f1e48ddc721c7292ba992.tar.gz dexon-40717465bc8c0e2feb0f1e48ddc721c7292ba992.tar.zst dexon-40717465bc8c0e2feb0f1e48ddc721c7292ba992.zip |
core: fixed tests
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r-- | core/chain_makers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go index acf7b39cc..44f17cc33 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -109,7 +109,7 @@ func makeChain(bman *BlockProcessor, parent *types.Block, max int, db common.Dat // Effectively a fork factory func newChainManager(block *types.Block, eventMux *event.TypeMux, db common.Database) *ChainManager { genesis := GenesisBlock(db) - bc := &ChainManager{blockDb: db, stateDb: db, genesisBlock: genesis, eventMux: eventMux} + bc := &ChainManager{blockDb: db, stateDb: db, genesisBlock: genesis, eventMux: eventMux, pow: FakePow{}} bc.txState = state.ManageState(state.New(genesis.Root(), db)) bc.futureBlocks = NewBlockCache(1000) if block == nil { |