accounts, core, eth: pass chain config for chain maker to test DAO

This commit is contained in:
Péter Szilágyi
2016-07-14 18:17:03 +03:00
parent 461cdb593b
commit 3291235711
16 changed files with 181 additions and 132 deletions

View File

@ -56,7 +56,7 @@ func newTestProtocolManager(fastSync bool, blocks int, generator func(int, *core
chainConfig = &core.ChainConfig{HomesteadBlock: big.NewInt(0)} // homestead set to 0 because of chain maker
blockchain, _ = core.NewBlockChain(db, chainConfig, pow, evmux)
)
chain, _ := core.GenerateChain(genesis, db, blocks, generator)
chain, _ := core.GenerateChain(nil, genesis, db, blocks, generator)
if _, err := blockchain.InsertChain(chain); err != nil {
panic(err)
}