aboutsummaryrefslogtreecommitdiffstats
path: root/core/blocklattice_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/blocklattice_test.go')
-rw-r--r--core/blocklattice_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/blocklattice_test.go b/core/blocklattice_test.go
index e0c9fb0..76e5129 100644
--- a/core/blocklattice_test.go
+++ b/core/blocklattice_test.go
@@ -400,7 +400,7 @@ func (s *BlockLatticeTest) TestRandomIntensiveAcking() {
func (s *BlockLatticeTest) TestRandomlyGeneratedBlocks() {
var (
chainNum uint32 = 19
- blockCount = 50
+ blockNum = 50
repeat = 20
delivered []*types.Block
err error
@@ -412,7 +412,7 @@ func (s *BlockLatticeTest) TestRandomlyGeneratedBlocks() {
db, err := blockdb.NewMemBackedBlockDB()
req.Nil(err)
gen := test.NewBlocksGenerator(nil, hashBlock)
- _, err = gen.Generate(int(chainNum), blockCount, nil, db)
+ _, err = gen.Generate(chainNum, blockNum, nil, db)
req.Nil(err)
iter, err := db.GetAll()
req.Nil(err)