core: write accounts to statedb. Closes #1210

This commit is contained in:
obscuren
2015-06-09 11:36:23 +02:00
parent 0f1cdfa53a
commit a5b977aa90
2 changed files with 8 additions and 7 deletions

View File

@ -111,12 +111,13 @@ type ChainManager struct {
func NewChainManager(genesis *types.Block, blockDb, stateDb common.Database, pow pow.PoW, mux *event.TypeMux) (*ChainManager, error) {
bc := &ChainManager{
blockDb: blockDb,
stateDb: stateDb,
eventMux: mux,
quit: make(chan struct{}),
cache: NewBlockCache(blockCacheLimit),
pow: pow,
blockDb: blockDb,
stateDb: stateDb,
genesisBlock: GenesisBlock(42, stateDb),
eventMux: mux,
quit: make(chan struct{}),
cache: NewBlockCache(blockCacheLimit),
pow: pow,
}
// Check the genesis block given to the chain manager. If the genesis block mismatches block number 0