@@ -101,9 +101,6 @@ func runExecution(
101
101
testaddress .Keyinfo ["producer" ].PubKey ,
102
102
testaddress .Keyinfo ["producer" ].PriKey ,
103
103
testaddress .Addrinfo ["producer" ].Bech32 (),
104
- nil ,
105
- nil ,
106
- "" ,
107
104
)
108
105
if err != nil {
109
106
return nil , err
@@ -265,7 +262,12 @@ func TestProtocol_Handle(t *testing.T) {
265
262
266
263
actionMap := make (map [string ][]action.SealedEnvelope )
267
264
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
268
- blk , err := bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
265
+ blk , err := bc .MintNewBlock (
266
+ actionMap ,
267
+ testaddress .Keyinfo ["producer" ].PubKey ,
268
+ testaddress .Keyinfo ["producer" ].PriKey ,
269
+ testaddress .Addrinfo ["producer" ].Bech32 (),
270
+ )
269
271
require .NoError (err )
270
272
require .NoError (bc .ValidateBlock (blk , true ))
271
273
require .Nil (bc .CommitBlock (blk ))
@@ -318,7 +320,12 @@ func TestProtocol_Handle(t *testing.T) {
318
320
319
321
actionMap = make (map [string ][]action.SealedEnvelope )
320
322
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
321
- blk , err = bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
323
+ blk , err = bc .MintNewBlock (
324
+ actionMap ,
325
+ testaddress .Keyinfo ["producer" ].PubKey ,
326
+ testaddress .Keyinfo ["producer" ].PriKey ,
327
+ testaddress .Addrinfo ["producer" ].Bech32 (),
328
+ )
322
329
require .NoError (err )
323
330
require .NoError (bc .ValidateBlock (blk , true ))
324
331
require .Nil (bc .CommitBlock (blk ))
@@ -353,7 +360,12 @@ func TestProtocol_Handle(t *testing.T) {
353
360
log .S ().Infof ("execution %+v" , execution )
354
361
actionMap = make (map [string ][]action.SealedEnvelope )
355
362
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
356
- blk , err = bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
363
+ blk , err = bc .MintNewBlock (
364
+ actionMap ,
365
+ testaddress .Keyinfo ["producer" ].PubKey ,
366
+ testaddress .Keyinfo ["producer" ].PriKey ,
367
+ testaddress .Addrinfo ["producer" ].Bech32 (),
368
+ )
357
369
require .NoError (err )
358
370
require .NoError (bc .ValidateBlock (blk , true ))
359
371
require .Nil (bc .CommitBlock (blk ))
@@ -378,7 +390,12 @@ func TestProtocol_Handle(t *testing.T) {
378
390
379
391
actionMap = make (map [string ][]action.SealedEnvelope )
380
392
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
381
- blk , err = bc .MintNewBlock (actionMap , testaddress .Keyinfo ["alfa" ].PubKey , testaddress .Keyinfo ["alfa" ].PriKey , testaddress .Addrinfo ["alfa" ].Bech32 (), nil , nil , "" )
393
+ blk , err = bc .MintNewBlock (
394
+ actionMap ,
395
+ testaddress .Keyinfo ["alfa" ].PubKey ,
396
+ testaddress .Keyinfo ["alfa" ].PriKey ,
397
+ testaddress .Addrinfo ["alfa" ].Bech32 (),
398
+ )
382
399
require .NoError (err )
383
400
require .NoError (bc .ValidateBlock (blk , true ))
384
401
require .Nil (bc .CommitBlock (blk ))
@@ -449,7 +466,12 @@ func TestProtocol_Handle(t *testing.T) {
449
466
450
467
actionMap := make (map [string ][]action.SealedEnvelope )
451
468
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
452
- blk , err := bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
469
+ blk , err := bc .MintNewBlock (
470
+ actionMap ,
471
+ testaddress .Keyinfo ["producer" ].PubKey ,
472
+ testaddress .Keyinfo ["producer" ].PriKey ,
473
+ testaddress .Addrinfo ["producer" ].Bech32 (),
474
+ )
453
475
require .NoError (err )
454
476
require .NoError (bc .ValidateBlock (blk , true ))
455
477
require .Nil (bc .CommitBlock (blk ))
@@ -475,7 +497,12 @@ func TestProtocol_Handle(t *testing.T) {
475
497
476
498
actionMap = make (map [string ][]action.SealedEnvelope )
477
499
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
478
- blk , err = bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
500
+ blk , err = bc .MintNewBlock (
501
+ actionMap ,
502
+ testaddress .Keyinfo ["producer" ].PubKey ,
503
+ testaddress .Keyinfo ["producer" ].PriKey ,
504
+ testaddress .Addrinfo ["producer" ].Bech32 (),
505
+ )
479
506
require .NoError (err )
480
507
require .NoError (bc .ValidateBlock (blk , true ))
481
508
require .Nil (bc .CommitBlock (blk ))
@@ -501,7 +528,12 @@ func TestProtocol_Handle(t *testing.T) {
501
528
502
529
actionMap = make (map [string ][]action.SealedEnvelope )
503
530
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
504
- blk , err = bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
531
+ blk , err = bc .MintNewBlock (
532
+ actionMap ,
533
+ testaddress .Keyinfo ["producer" ].PubKey ,
534
+ testaddress .Keyinfo ["producer" ].PriKey ,
535
+ testaddress .Addrinfo ["producer" ].Bech32 (),
536
+ )
505
537
require .NoError (err )
506
538
require .NoError (bc .ValidateBlock (blk , true ))
507
539
require .Nil (bc .CommitBlock (blk ))
@@ -534,7 +566,12 @@ func TestProtocol_Handle(t *testing.T) {
534
566
535
567
actionMap = make (map [string ][]action.SealedEnvelope )
536
568
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
537
- blk , err = bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
569
+ blk , err = bc .MintNewBlock (
570
+ actionMap ,
571
+ testaddress .Keyinfo ["producer" ].PubKey ,
572
+ testaddress .Keyinfo ["producer" ].PriKey ,
573
+ testaddress .Addrinfo ["producer" ].Bech32 (),
574
+ )
538
575
require .NoError (err )
539
576
require .NoError (bc .ValidateBlock (blk , true ))
540
577
require .Nil (bc .CommitBlock (blk ))
@@ -603,7 +640,12 @@ func TestProtocol_Handle(t *testing.T) {
603
640
604
641
actionMap := make (map [string ][]action.SealedEnvelope )
605
642
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
606
- blk , err := bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
643
+ blk , err := bc .MintNewBlock (
644
+ actionMap ,
645
+ testaddress .Keyinfo ["producer" ].PubKey ,
646
+ testaddress .Keyinfo ["producer" ].PriKey ,
647
+ testaddress .Addrinfo ["producer" ].Bech32 (),
648
+ )
607
649
require .NoError (err )
608
650
require .NoError (bc .ValidateBlock (blk , true ))
609
651
require .Nil (bc .CommitBlock (blk ))
@@ -677,7 +719,12 @@ func TestProtocol_Handle(t *testing.T) {
677
719
678
720
actionMap = make (map [string ][]action.SealedEnvelope )
679
721
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp , selp2 }
680
- blk , err = bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
722
+ blk , err = bc .MintNewBlock (
723
+ actionMap ,
724
+ testaddress .Keyinfo ["producer" ].PubKey ,
725
+ testaddress .Keyinfo ["producer" ].PriKey ,
726
+ testaddress .Addrinfo ["producer" ].Bech32 (),
727
+ )
681
728
require .NoError (err )
682
729
require .NoError (bc .ValidateBlock (blk , true ))
683
730
require .Nil (bc .CommitBlock (blk ))
@@ -705,7 +752,12 @@ func TestProtocol_Handle(t *testing.T) {
705
752
706
753
actionMap = make (map [string ][]action.SealedEnvelope )
707
754
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp3 }
708
- blk , err = bc .MintNewBlock (actionMap , testaddress .Keyinfo ["alfa" ].PubKey , testaddress .Keyinfo ["alfa" ].PriKey , testaddress .Addrinfo ["alfa" ].Bech32 (), nil , nil , "" )
755
+ blk , err = bc .MintNewBlock (
756
+ actionMap ,
757
+ testaddress .Keyinfo ["alfa" ].PubKey ,
758
+ testaddress .Keyinfo ["alfa" ].PriKey ,
759
+ testaddress .Addrinfo ["alfa" ].Bech32 (),
760
+ )
709
761
require .NoError (err )
710
762
require .NoError (bc .ValidateBlock (blk , true ))
711
763
require .Nil (bc .CommitBlock (blk ))
@@ -727,7 +779,12 @@ func TestProtocol_Handle(t *testing.T) {
727
779
728
780
actionMap = make (map [string ][]action.SealedEnvelope )
729
781
actionMap [selp .SrcAddr ()] = []action.SealedEnvelope {selp }
730
- blk , err = bc .MintNewBlock (actionMap , testaddress .Keyinfo ["producer" ].PubKey , testaddress .Keyinfo ["producer" ].PriKey , testaddress .Addrinfo ["producer" ].Bech32 (), nil , nil , "" )
782
+ blk , err = bc .MintNewBlock (
783
+ actionMap ,
784
+ testaddress .Keyinfo ["producer" ].PubKey ,
785
+ testaddress .Keyinfo ["producer" ].PriKey ,
786
+ testaddress .Addrinfo ["producer" ].Bech32 (),
787
+ )
731
788
require .NoError (err )
732
789
require .NoError (bc .ValidateBlock (blk , true ))
733
790
require .Nil (bc .CommitBlock (blk ))
0 commit comments