chore: fix function name

This commit is contained in:
luozexuan 2024-10-10 20:48:48 +08:00 committed by GitHub
parent 3949415fc5
commit 69470888fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -618,7 +618,7 @@ func makeBlockChainWithGenesis(genesis *Genesis, n int, engine consensus.Engine,
return db, blocks return db, blocks
} }
// makeBlockChain creates a deterministic chain of blocks rooted at parent with fake invalid transactions. // makeFakeNonEmptyBlockChain creates a deterministic chain of blocks rooted at parent with fake invalid transactions.
func makeFakeNonEmptyBlockChain(parent *types.Block, n int, engine consensus.Engine, db ethdb.Database, seed int, numTx int) []*types.Block { func makeFakeNonEmptyBlockChain(parent *types.Block, n int, engine consensus.Engine, db ethdb.Database, seed int, numTx int) []*types.Block {
blocks, _ := GenerateChain(params.TestChainConfig, parent, engine, db, n, func(i int, b *BlockGen) { blocks, _ := GenerateChain(params.TestChainConfig, parent, engine, db, n, func(i int, b *BlockGen) {
addr := common.Address{0: byte(seed), 19: byte(i)} addr := common.Address{0: byte(seed), 19: byte(i)}