@@ -122,8 +122,13 @@ func (s *CoreSuite) TestAddFinalizedBlock() {
122122 require .Nil (s .T (), s .core .pendingCache .Peek (block .ID ()))
123123}
124124
125- // TestProcessingRangeHappyPath tests processing range with length > 1, which will result in a chain of certified blocks
126- // that have to be added to the protocol state once validated and added to pending cache and then pending tree.
125+ // TestProcessingRangeHappyPath tests processing range of blocks with length > 1, which should result
126+ // in a chain of certified blocks that have been
127+ // 1. validated
128+ // 2. added to the pending cache
129+ // 3. added to the pending tree
130+ // 4. added to the protocol state
131+ // Finally, the certified blocks should be forwarded to the HotStuff follower.
127132func (s * CoreSuite ) TestProcessingRangeHappyPath () {
128133 blocks := unittest .ChainFixtureFrom (10 , s .finalizedBlock )
129134
@@ -238,9 +243,10 @@ func (s *CoreSuite) TestDetectingProposalEquivocation() {
238243// TestConcurrentAdd simulates multiple workers adding batches of connected blocks out of order.
239244// We use next setup:
240245// Number of workers - workers
241- // Number of batches submitted by worker - batchesPerWorker
242- // Number of blocks in each batch submitted by worker - blocksPerBatch
243- // Each worker submits batchesPerWorker*blocksPerBatch blocks
246+ // - Number of workers - workers
247+ // - Number of batches submitted by worker - batchesPerWorker
248+ // - Number of blocks in each batch submitted by worker - blocksPerBatch
249+ // - Each worker submits batchesPerWorker*blocksPerBatch blocks
244250// In total we will submit workers*batchesPerWorker*blocksPerBatch
245251// After submitting all blocks we expect that chain of blocks except last one will be added to the protocol state and
246252// submitted for further processing to Hotstuff layer.
0 commit comments