diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-22 19:09:59 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-23 17:50:12 +0800 |
commit | 888ece0cb2c9d07ae821398aeffb0000ef28fb23 (patch) | |
tree | e8653d4fdf561704d0ef20379123bed1f8204902 /core/chain_makers.go | |
parent | 7edbb0110f6ab04541ed2fef1e373d61d0dc063d (diff) | |
download | dexon-888ece0cb2c9d07ae821398aeffb0000ef28fb23.tar dexon-888ece0cb2c9d07ae821398aeffb0000ef28fb23.tar.gz dexon-888ece0cb2c9d07ae821398aeffb0000ef28fb23.tar.bz2 dexon-888ece0cb2c9d07ae821398aeffb0000ef28fb23.tar.lz dexon-888ece0cb2c9d07ae821398aeffb0000ef28fb23.tar.xz dexon-888ece0cb2c9d07ae821398aeffb0000ef28fb23.tar.zst dexon-888ece0cb2c9d07ae821398aeffb0000ef28fb23.zip |
core: fixed test
Diffstat (limited to 'core/chain_makers.go')
-rw-r--r-- | core/chain_makers.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/chain_makers.go b/core/chain_makers.go index 250671ef8..9b4911fba 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -108,7 +108,9 @@ func makeChain(bman *BlockProcessor, parent *types.Block, max int, db common.Dat // Create a new chain manager starting from given block // Effectively a fork factory func newChainManager(block *types.Block, eventMux *event.TypeMux, db common.Database) *ChainManager { - bc := &ChainManager{blockDb: db, stateDb: db, genesisBlock: GenesisBlock(db), eventMux: eventMux} + genesis := GenesisBlock(db) + bc := &ChainManager{blockDb: db, stateDb: db, genesisBlock: genesis, eventMux: eventMux} + bc.txState = state.ManageState(state.New(genesis.Root(), db)) bc.futureBlocks = NewBlockCache(1000) if block == nil { bc.Reset() |