makeBlockChain creates a deterministic chain of blocks rooted at parent.
(parent *types.Block, n int, engine consensus.Engine, db database.Database, seed int)
| 260 | |
| 261 | // makeBlockChain creates a deterministic chain of blocks rooted at parent. |
| 262 | func makeBlockChain(parent *types.Block, n int, engine consensus.Engine, db database.Database, seed int) []*types.Block { |
| 263 | blocks, _ := GenerateChain(configs.TestChainConfig, parent, engine, db, nil, n, func(i int, b *BlockGen) { |
| 264 | b.SetCoinbase(common.Address{0: byte(seed), 19: byte(i)}) |
| 265 | }) |
| 266 | return blocks |
| 267 | } |