diff options
Diffstat (limited to 'core/reliable-broadcast_test.go')
-rw-r--r-- | core/reliable-broadcast_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/reliable-broadcast_test.go b/core/reliable-broadcast_test.go index cf82949..0e627d1 100644 --- a/core/reliable-broadcast_test.go +++ b/core/reliable-broadcast_test.go @@ -545,9 +545,9 @@ func (s *ReliableBroadcastTest) TestRandomIntensiveAcking() { func (s *ReliableBroadcastTest) TestRandomlyGeneratedBlocks() { var ( - nodeCount = 19 - blockCount = 50 - repeat = 20 + chainNum = uint32(19) + blockNum = 50 + repeat = 20 ) // Prepare a randomly generated blocks. @@ -560,7 +560,7 @@ func (s *ReliableBroadcastTest) TestRandomlyGeneratedBlocks() { } }() gen := test.NewBlocksGenerator(nil, hashBlock) - _, err = gen.Generate(nodeCount, blockCount, nil, db) + _, err = gen.Generate(chainNum, blockNum, nil, db) s.Require().Nil(err) iter, err := db.GetAll() s.Require().Nil(err) @@ -572,7 +572,7 @@ func (s *ReliableBroadcastTest) TestRandomlyGeneratedBlocks() { for i := 0; i < repeat; i++ { nodes := map[types.NodeID]struct{}{} rb := newReliableBroadcast() - rb.setChainNum(uint32(nodeCount)) + rb.setChainNum(chainNum) stronglyAckedHashes := common.Hashes{} revealer.Reset() |