Merge pull request #1211 from obscuren/genesis_writout_fix

core: write accounts to statedb. Closes #1210
This commit is contained in:
Jeffrey Wilcke 2015-06-09 02:55:47 -07:00
commit 11f65cf885
2 changed files with 8 additions and 7 deletions

@ -113,6 +113,7 @@ func NewChainManager(genesis *types.Block, blockDb, stateDb common.Database, pow
bc := &ChainManager{
blockDb: blockDb,
stateDb: stateDb,
genesisBlock: GenesisBlock(42, stateDb),
eventMux: mux,
quit: make(chan struct{}),
cache: NewBlockCache(blockCacheLimit),

@ -285,7 +285,7 @@ func New(config *Config) (*Ethereum, error) {
}
eth.pow = ethash.New()
genesis := core.GenesisBlock(uint64(config.GenesisNonce), blockDb)
genesis := core.GenesisBlock(uint64(config.GenesisNonce), stateDb)
eth.chainManager, err = core.NewChainManager(genesis, blockDb, stateDb, eth.pow, eth.EventMux())
if err != nil {
return nil, err