@@ -549,7 +549,7 @@ func TestSphinxHopVariableSizedPayloads(t *testing.T) {
549549 {
550550 numNodes : 1 ,
551551 eobMapping : map [int ]HopPayload {
552- 0 : HopPayload {
552+ 0 : {
553553 Type : PayloadTLV ,
554554 Payload : bytes .Repeat ([]byte ("a" ), LegacyHopDataSize - HMACSize ),
555555 },
@@ -561,7 +561,7 @@ func TestSphinxHopVariableSizedPayloads(t *testing.T) {
561561 {
562562 numNodes : 1 ,
563563 eobMapping : map [int ]HopPayload {
564- 0 : HopPayload {
564+ 0 : {
565565 Type : PayloadTLV ,
566566 Payload : bytes .Repeat ([]byte ("a" ), LegacyHopDataSize * 3 ),
567567 },
@@ -582,7 +582,7 @@ func TestSphinxHopVariableSizedPayloads(t *testing.T) {
582582 OutgoingCltv : 3 ,
583583 NextAddress : [8 ]byte {1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 },
584584 }),
585- 1 : HopPayload {
585+ 1 : {
586586 Type : PayloadTLV ,
587587 Payload : bytes .Repeat ([]byte ("a" ), LegacyHopDataSize * 2 ),
588588 },
@@ -595,7 +595,7 @@ func TestSphinxHopVariableSizedPayloads(t *testing.T) {
595595 {
596596 numNodes : 3 ,
597597 eobMapping : map [int ]HopPayload {
598- 0 : HopPayload {
598+ 0 : {
599599 Type : PayloadTLV ,
600600 Payload : bytes .Repeat ([]byte ("a" ), 100 ),
601601 },
@@ -605,7 +605,7 @@ func TestSphinxHopVariableSizedPayloads(t *testing.T) {
605605 OutgoingCltv : 9 ,
606606 NextAddress : [8 ]byte {1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 },
607607 }),
608- 2 : HopPayload {
608+ 2 : {
609609 Type : PayloadTLV ,
610610 Payload : bytes .Repeat ([]byte ("a" ), 256 ),
611611 },
@@ -617,15 +617,15 @@ func TestSphinxHopVariableSizedPayloads(t *testing.T) {
617617 {
618618 numNodes : 3 ,
619619 eobMapping : map [int ]HopPayload {
620- 0 : HopPayload {
620+ 0 : {
621621 Type : PayloadTLV ,
622622 Payload : bytes .Repeat ([]byte ("a" ), 200 ),
623623 },
624- 1 : HopPayload {
624+ 1 : {
625625 Type : PayloadTLV ,
626626 Payload : bytes .Repeat ([]byte ("a" ), 256 ),
627627 },
628- 2 : HopPayload {
628+ 2 : {
629629 Type : PayloadTLV ,
630630 Payload : bytes .Repeat ([]byte ("a" ), 150 ),
631631 },
@@ -637,15 +637,15 @@ func TestSphinxHopVariableSizedPayloads(t *testing.T) {
637637 {
638638 numNodes : 3 ,
639639 eobMapping : map [int ]HopPayload {
640- 0 : HopPayload {
640+ 0 : {
641641 Type : PayloadTLV ,
642642 Payload : bytes .Repeat ([]byte ("a" ), 500 ),
643643 },
644- 1 : HopPayload {
644+ 1 : {
645645 Type : PayloadTLV ,
646646 Payload : bytes .Repeat ([]byte ("a" ), 500 ),
647647 },
648- 2 : HopPayload {
648+ 2 : {
649649 Type : PayloadTLV ,
650650 Payload : bytes .Repeat ([]byte ("a" ), 500 ),
651651 },
0 commit comments