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

@ -163,7 +163,7 @@ func benchInsertChain(b *testing.B, disk bool, gen func(int, *BlockGen)) {
// Generate a chain of b.N blocks using the supplied block
// generator function.
genesis := WriteGenesisBlockForTesting(db, GenesisAccount{benchRootAddr, benchRootFunds})
chain, _ := GenerateChain(genesis, db, b.N, gen)
chain, _ := GenerateChain(nil, genesis, db, b.N, gen)
// Time the insertion of the new chain.
// State and blocks are stored in the same DB.