@@ -142,27 +142,28 @@ func TestHandleDispute(t *testing.T) {
142
142
var blockManager * bindings.BlockManager
143
143
144
144
type args struct {
145
- sortedProposedBlockIds []uint32
146
- sortedProposedBlockIdsErr error
147
- biggestStake * big.Int
148
- biggestStakeId uint32
149
- biggestStakeErr error
150
- medians []* big.Int
151
- revealedCollectionIds []uint16
152
- revealedDataMaps * types.RevealedDataMaps
153
- mediansErr error
154
- proposedBlock bindings.StructsBlock
155
- proposedBlockErr error
156
- disputeBiggestStakeTxn * Types.Transaction
157
- disputeBiggestStakeErr error
158
- Hash common.Hash
159
- idDisputeTxn * Types.Transaction
160
- idDisputeTxnErr error
161
- misMatchIndex int
162
- leafId uint16
163
- leafIdErr error
164
- disputeErr error
165
- storeBountyIdErr error
145
+ sortedProposedBlockIds []uint32
146
+ sortedProposedBlockIdsErr error
147
+ biggestStake * big.Int
148
+ biggestStakeId uint32
149
+ biggestStakeErr error
150
+ randomSortedProposedBlockIds []uint32
151
+ medians []* big.Int
152
+ revealedCollectionIds []uint16
153
+ revealedDataMaps * types.RevealedDataMaps
154
+ mediansErr error
155
+ proposedBlock bindings.StructsBlock
156
+ proposedBlockErr error
157
+ disputeBiggestStakeTxn * Types.Transaction
158
+ disputeBiggestStakeErr error
159
+ Hash common.Hash
160
+ idDisputeTxn * Types.Transaction
161
+ idDisputeTxnErr error
162
+ misMatchIndex int
163
+ leafId uint16
164
+ leafIdErr error
165
+ disputeErr error
166
+ storeBountyIdErr error
166
167
}
167
168
tests := []struct {
168
169
name string
@@ -172,11 +173,12 @@ func TestHandleDispute(t *testing.T) {
172
173
{
173
174
name : "Test 1: When HandleDispute function executes successfully" ,
174
175
args : args {
175
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
176
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
177
- biggestStakeId : 2 ,
178
- medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
179
- revealedCollectionIds : []uint16 {1 },
176
+ sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
177
+ randomSortedProposedBlockIds : []uint32 {2 , 3 , 1 , 4 , 0 },
178
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
179
+ biggestStakeId : 2 ,
180
+ medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
181
+ revealedCollectionIds : []uint16 {1 },
180
182
revealedDataMaps : & types.RevealedDataMaps {
181
183
SortedRevealedValues : nil ,
182
184
VoteWeights : nil ,
@@ -194,9 +196,10 @@ func TestHandleDispute(t *testing.T) {
194
196
{
195
197
name : "Test 2: When HandleDispute function executes successfully when there is no dispute case" ,
196
198
args : args {
197
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
198
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
199
- biggestStakeId : 2 ,
199
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
200
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
201
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
202
+ biggestStakeId : 2 ,
200
203
proposedBlock : bindings.StructsBlock {
201
204
Medians : []* big.Int {big .NewInt (6701548 ), big .NewInt (478307 )},
202
205
BiggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
@@ -219,18 +222,20 @@ func TestHandleDispute(t *testing.T) {
219
222
{
220
223
name : "Test 4: When there is an error in getting proposedBlock" ,
221
224
args : args {
222
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
223
- proposedBlockErr : errors .New ("proposedBlock error" ),
224
- disputeErr : nil ,
225
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
226
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
227
+ proposedBlockErr : errors .New ("proposedBlock error" ),
228
+ disputeErr : nil ,
225
229
},
226
230
want : nil ,
227
231
},
228
232
{
229
233
name : "Test 5: When there is a case of Dispute but block is already disputed" ,
230
234
args : args {
231
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
232
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
233
- biggestStakeId : 2 ,
235
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
236
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
237
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
238
+ biggestStakeId : 2 ,
234
239
proposedBlock : bindings.StructsBlock {
235
240
Medians : []* big.Int {big .NewInt (6701548 ), big .NewInt (478307 )},
236
241
BiggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
@@ -241,9 +246,10 @@ func TestHandleDispute(t *testing.T) {
241
246
{
242
247
name : "Test 6: When HandleDispute function executes successfully when there is a biggest influence dispute case" ,
243
248
args : args {
244
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
245
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
246
- biggestStakeId : 2 ,
249
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
250
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
251
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
252
+ biggestStakeId : 2 ,
247
253
proposedBlock : bindings.StructsBlock {
248
254
Medians : []* big.Int {big .NewInt (6701548 ), big .NewInt (478307 )},
249
255
Valid : true ,
@@ -258,8 +264,9 @@ func TestHandleDispute(t *testing.T) {
258
264
{
259
265
name : "Test 7: When there is an error in getting biggestInfluenceAndId" ,
260
266
args : args {
261
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
262
- biggestStakeErr : errors .New ("biggestInfluenceAndIdErr" ),
267
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
268
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
269
+ biggestStakeErr : errors .New ("biggestInfluenceAndIdErr" ),
263
270
proposedBlock : bindings.StructsBlock {
264
271
Medians : []* big.Int {big .NewInt (6701548 ), big .NewInt (478307 )},
265
272
Valid : true ,
@@ -275,9 +282,10 @@ func TestHandleDispute(t *testing.T) {
275
282
{
276
283
name : "Test 8: When DisputeBiggestStakeProposed transaction fails" ,
277
284
args : args {
278
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
279
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
280
- biggestStakeId : 2 ,
285
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
286
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
287
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
288
+ biggestStakeId : 2 ,
281
289
proposedBlock : bindings.StructsBlock {
282
290
Medians : []* big.Int {big .NewInt (6701548 ), big .NewInt (478307 )},
283
291
Valid : true ,
@@ -292,21 +300,23 @@ func TestHandleDispute(t *testing.T) {
292
300
{
293
301
name : "Test 9: When there is an error in getting medians" ,
294
302
args : args {
295
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
296
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
297
- biggestStakeId : 2 ,
298
- mediansErr : errors .New ("error in getting medians" ),
303
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
304
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
305
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
306
+ biggestStakeId : 2 ,
307
+ mediansErr : errors .New ("error in getting medians" ),
299
308
},
300
309
want : errors .New ("error in getting medians" ),
301
310
},
302
311
{
303
312
name : "Test 10: When there is an error in fetching Ids from CheckDisputeForIds" ,
304
313
args : args {
305
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
306
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
307
- biggestStakeId : 2 ,
308
- medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
309
- revealedCollectionIds : []uint16 {1 },
314
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
315
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
316
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
317
+ biggestStakeId : 2 ,
318
+ medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
319
+ revealedCollectionIds : []uint16 {1 },
310
320
revealedDataMaps : & types.RevealedDataMaps {
311
321
SortedRevealedValues : nil ,
312
322
VoteWeights : nil ,
@@ -325,11 +335,12 @@ func TestHandleDispute(t *testing.T) {
325
335
{
326
336
name : "Test 11: When idDisputeTxn is not nil" ,
327
337
args : args {
328
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
329
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
330
- biggestStakeId : 2 ,
331
- medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
332
- revealedCollectionIds : []uint16 {1 },
338
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
339
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
340
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
341
+ biggestStakeId : 2 ,
342
+ medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
343
+ revealedCollectionIds : []uint16 {1 },
333
344
revealedDataMaps : & types.RevealedDataMaps {
334
345
SortedRevealedValues : nil ,
335
346
VoteWeights : nil ,
@@ -348,11 +359,12 @@ func TestHandleDispute(t *testing.T) {
348
359
{
349
360
name : "Test 12: When it is a median dispute case and error in getting leafId" ,
350
361
args : args {
351
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
352
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
353
- biggestStakeId : 2 ,
354
- medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
355
- revealedCollectionIds : []uint16 {1 },
362
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
363
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
364
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
365
+ biggestStakeId : 2 ,
366
+ medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
367
+ revealedCollectionIds : []uint16 {1 },
356
368
revealedDataMaps : & types.RevealedDataMaps {
357
369
SortedRevealedValues : nil ,
358
370
VoteWeights : nil ,
@@ -373,11 +385,12 @@ func TestHandleDispute(t *testing.T) {
373
385
{
374
386
name : "Test 13: When there is an error in dispute" ,
375
387
args : args {
376
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
377
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
378
- biggestStakeId : 2 ,
379
- medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
380
- revealedCollectionIds : []uint16 {1 },
388
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
389
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
390
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
391
+ biggestStakeId : 2 ,
392
+ medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
393
+ revealedCollectionIds : []uint16 {1 },
381
394
revealedDataMaps : & types.RevealedDataMaps {
382
395
SortedRevealedValues : nil ,
383
396
VoteWeights : nil ,
@@ -398,9 +411,10 @@ func TestHandleDispute(t *testing.T) {
398
411
{
399
412
name : "Test 14: When there is a biggest influence dispute case but there is an error in storing bountyId" ,
400
413
args : args {
401
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
402
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
403
- biggestStakeId : 2 ,
414
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
415
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
416
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
417
+ biggestStakeId : 2 ,
404
418
proposedBlock : bindings.StructsBlock {
405
419
Medians : []* big.Int {big .NewInt (6701548 ), big .NewInt (478307 )},
406
420
Valid : true ,
@@ -416,11 +430,12 @@ func TestHandleDispute(t *testing.T) {
416
430
{
417
431
name : "Test 15: When there is a idsDispute case but there is an error in storing bountyId" ,
418
432
args : args {
419
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
420
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
421
- biggestStakeId : 2 ,
422
- medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
423
- revealedCollectionIds : []uint16 {1 },
433
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
434
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
435
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
436
+ biggestStakeId : 2 ,
437
+ medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
438
+ revealedCollectionIds : []uint16 {1 },
424
439
revealedDataMaps : & types.RevealedDataMaps {
425
440
SortedRevealedValues : nil ,
426
441
VoteWeights : nil ,
@@ -440,11 +455,12 @@ func TestHandleDispute(t *testing.T) {
440
455
{
441
456
name : "Test 16: When HandleDispute function executes successfully and medians proposed are empty" ,
442
457
args : args {
443
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 0 , 4 },
444
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
445
- biggestStakeId : 2 ,
446
- medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
447
- revealedCollectionIds : []uint16 {1 },
458
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
459
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
460
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
461
+ biggestStakeId : 2 ,
462
+ medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
463
+ revealedCollectionIds : []uint16 {1 },
448
464
revealedDataMaps : & types.RevealedDataMaps {
449
465
SortedRevealedValues : nil ,
450
466
VoteWeights : nil ,
@@ -462,11 +478,35 @@ func TestHandleDispute(t *testing.T) {
462
478
{
463
479
name : "Test 17: When there is a case of blockIndex = -1" ,
464
480
args : args {
465
- sortedProposedBlockIds : []uint32 {3 , 1 , 2 , 5 , 4 },
466
- biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
467
- biggestStakeId : 2 ,
468
- medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
469
- revealedCollectionIds : []uint16 {1 },
481
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
482
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
483
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
484
+ biggestStakeId : 2 ,
485
+ medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
486
+ revealedCollectionIds : []uint16 {1 },
487
+ revealedDataMaps : & types.RevealedDataMaps {
488
+ SortedRevealedValues : nil ,
489
+ VoteWeights : nil ,
490
+ InfluenceSum : nil ,
491
+ },
492
+ proposedBlock : bindings.StructsBlock {
493
+ Medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
494
+ Valid : true ,
495
+ BiggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
496
+ },
497
+ disputeErr : nil ,
498
+ },
499
+ want : nil ,
500
+ },
501
+ {
502
+ name : "Test 18: When HandleDispute function executes successfully and contains different values in sortedProposedBlockIds" ,
503
+ args : args {
504
+ sortedProposedBlockIds : []uint32 {45 , 65 , 23 , 64 , 12 },
505
+ randomSortedProposedBlockIds : []uint32 {23 , 64 , 12 , 65 , 23 },
506
+ biggestStake : big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )),
507
+ biggestStakeId : 2 ,
508
+ medians : []* big.Int {big .NewInt (6901548 ), big .NewInt (498307 )},
509
+ revealedCollectionIds : []uint16 {1 },
470
510
revealedDataMaps : & types.RevealedDataMaps {
471
511
SortedRevealedValues : nil ,
472
512
VoteWeights : nil ,
@@ -502,6 +542,7 @@ func TestHandleDispute(t *testing.T) {
502
542
utilsMock .On ("GetSortedProposedBlockIds" , mock .AnythingOfType ("*ethclient.Client" ), mock .AnythingOfType ("uint32" )).Return (tt .args .sortedProposedBlockIds , tt .args .sortedProposedBlockIdsErr )
503
543
cmdUtilsMock .On ("GetBiggestStakeAndId" , mock .AnythingOfType ("*ethclient.Client" ), mock .AnythingOfType ("string" ), mock .AnythingOfType ("uint32" )).Return (tt .args .biggestStake , tt .args .biggestStakeId , tt .args .biggestStakeErr )
504
544
cmdUtilsMock .On ("GetLocalMediansData" , mock .AnythingOfType ("*ethclient.Client" ), mock .Anything , mock .Anything , mock .Anything , mock .Anything ).Return (tt .args .medians , tt .args .revealedCollectionIds , tt .args .revealedDataMaps , tt .args .mediansErr )
545
+ utilsPkgMock .On ("Shuffle" , mock .Anything ).Return (tt .args .randomSortedProposedBlockIds )
505
546
utilsMock .On ("GetProposedBlock" , mock .AnythingOfType ("*ethclient.Client" ), mock .AnythingOfType ("uint32" ), mock .AnythingOfType ("uint32" )).Return (tt .args .proposedBlock , tt .args .proposedBlockErr )
506
547
utilsMock .On ("GetTxnOpts" , mock .AnythingOfType ("types.TransactionOptions" )).Return (txnOpts )
507
548
blockManagerUtilsMock .On ("DisputeBiggestStakeProposed" , mock .Anything , mock .Anything , mock .Anything , mock .Anything , mock .Anything ).Return (tt .args .disputeBiggestStakeTxn , tt .args .disputeBiggestStakeErr )
@@ -1132,6 +1173,7 @@ func BenchmarkHandleDispute(b *testing.B) {
1132
1173
var blockNumber * big.Int
1133
1174
var rogueData types.Rogue
1134
1175
var blockManager * bindings.BlockManager
1176
+ var randomSortedPorposedBlockIds []uint32
1135
1177
1136
1178
table := []struct {
1137
1179
numOfSortedBlocks uint32
@@ -1171,6 +1213,7 @@ func BenchmarkHandleDispute(b *testing.B) {
1171
1213
utilsMock .On ("GetSortedProposedBlockIds" , mock .AnythingOfType ("*ethclient.Client" ), mock .AnythingOfType ("uint32" )).Return (getUint32DummyIds (v .numOfSortedBlocks ), nil )
1172
1214
cmdUtilsMock .On ("GetBiggestStakeAndId" , mock .AnythingOfType ("*ethclient.Client" ), mock .AnythingOfType ("string" ), mock .AnythingOfType ("uint32" )).Return (big .NewInt (1 ).Mul (big .NewInt (5356 ), big .NewInt (1e18 )), uint32 (2 ), nil )
1173
1215
cmdUtilsMock .On ("GetLocalMediansData" , mock .AnythingOfType ("*ethclient.Client" ), mock .Anything , mock .Anything , mock .Anything , mock .Anything ).Return (medians , revealedCollectionIds , revealedDataMaps , nil )
1216
+ utilsPkgMock .On ("Shuffle" , mock .Anything ).Return (randomSortedPorposedBlockIds )
1174
1217
utilsMock .On ("GetProposedBlock" , mock .AnythingOfType ("*ethclient.Client" ), mock .AnythingOfType ("uint32" ), mock .AnythingOfType ("uint32" )).Return (proposedBlock , nil )
1175
1218
utilsMock .On ("GetTxnOpts" , mock .AnythingOfType ("types.TransactionOptions" )).Return (txnOpts )
1176
1219
blockManagerUtilsMock .On ("DisputeBiggestStakeProposed" , mock .Anything , mock .Anything , mock .Anything , mock .Anything , mock .Anything ).Return (& Types.Transaction {}, nil )
0 commit comments