@@ -59,7 +59,7 @@ func (a *AcceptChannel) RandTestMessage(t *rapid.T) Message {
59
59
if includeLocalNonce {
60
60
nonce := RandMusig2Nonce (t )
61
61
localNonce = tlv .SomeRecordT (
62
- tlv.NewRecordT [NonceRecordTypeT , Musig2Nonce ](nonce ),
62
+ tlv.NewRecordT [NonceRecordTypeT ](nonce ),
63
63
)
64
64
}
65
65
@@ -242,7 +242,7 @@ func (c *ChannelAnnouncement2) RandTestMessage(t *rapid.T) Message {
242
242
var bitcoinKey1 [33 ]byte
243
243
copy (bitcoinKey1 [:], RandPubKey (t ).SerializeCompressed ())
244
244
msg .BitcoinKey1 = tlv .SomeRecordT (
245
- tlv.NewPrimitiveRecord [tlv.TlvType12 , [ 33 ] byte ](
245
+ tlv.NewPrimitiveRecord [tlv.TlvType12 ](
246
246
bitcoinKey1 ,
247
247
),
248
248
)
@@ -252,7 +252,7 @@ func (c *ChannelAnnouncement2) RandTestMessage(t *rapid.T) Message {
252
252
var bitcoinKey2 [33 ]byte
253
253
copy (bitcoinKey2 [:], RandPubKey (t ).SerializeCompressed ())
254
254
msg .BitcoinKey2 = tlv .SomeRecordT (
255
- tlv.NewPrimitiveRecord [tlv.TlvType14 , [ 33 ] byte ](
255
+ tlv.NewPrimitiveRecord [tlv.TlvType14 ](
256
256
bitcoinKey2 ,
257
257
),
258
258
)
@@ -263,7 +263,7 @@ func (c *ChannelAnnouncement2) RandTestMessage(t *rapid.T) Message {
263
263
var merkleRootHash [32 ]byte
264
264
copy (merkleRootHash [:], hash [:])
265
265
msg .MerkleRootHash = tlv .SomeRecordT (
266
- tlv.NewPrimitiveRecord [tlv.TlvType16 , [ 32 ] byte ](
266
+ tlv.NewPrimitiveRecord [tlv.TlvType16 ](
267
267
merkleRootHash ,
268
268
),
269
269
)
@@ -309,14 +309,14 @@ func (c *ChannelReady) RandTestMessage(t *rapid.T) Message {
309
309
if includeAnnouncementNodeNonce {
310
310
nonce := RandMusig2Nonce (t )
311
311
msg .AnnouncementNodeNonce = tlv .SomeRecordT (
312
- tlv.NewRecordT [tlv.TlvType0 , Musig2Nonce ](nonce ),
312
+ tlv.NewRecordT [tlv.TlvType0 ](nonce ),
313
313
)
314
314
}
315
315
316
316
if includeAnnouncementBitcoinNonce {
317
317
nonce := RandMusig2Nonce (t )
318
318
msg .AnnouncementBitcoinNonce = tlv .SomeRecordT (
319
- tlv.NewRecordT [tlv.TlvType2 , Musig2Nonce ](nonce ),
319
+ tlv.NewRecordT [tlv.TlvType2 ](nonce ),
320
320
)
321
321
}
322
322
@@ -431,7 +431,7 @@ func (a *ChannelUpdate1) RandTestMessage(t *rapid.T) Message {
431
431
FeeRate : inFeeProp ,
432
432
}
433
433
inboundFee = tlv .SomeRecordT (
434
- tlv.NewRecordT [tlv.TlvType55555 , Fee ](fee ),
434
+ tlv.NewRecordT [tlv.TlvType55555 ](fee ),
435
435
)
436
436
437
437
var b bytes.Buffer
@@ -599,21 +599,21 @@ func (c *ClosingComplete) RandTestMessage(t *rapid.T) Message {
599
599
if includeCloserNoClosee {
600
600
sig := RandSignature (t )
601
601
msg .CloserNoClosee = tlv .SomeRecordT (
602
- tlv.NewRecordT [tlv.TlvType1 , Sig ](sig ),
602
+ tlv.NewRecordT [tlv.TlvType1 ](sig ),
603
603
)
604
604
}
605
605
606
606
if includeNoCloserClosee {
607
607
sig := RandSignature (t )
608
608
msg .NoCloserClosee = tlv .SomeRecordT (
609
- tlv.NewRecordT [tlv.TlvType2 , Sig ](sig ),
609
+ tlv.NewRecordT [tlv.TlvType2 ](sig ),
610
610
)
611
611
}
612
612
613
613
if includeCloserAndClosee {
614
614
sig := RandSignature (t )
615
615
msg .CloserAndClosee = tlv .SomeRecordT (
616
- tlv.NewRecordT [tlv.TlvType3 , Sig ](sig ),
616
+ tlv.NewRecordT [tlv.TlvType3 ](sig ),
617
617
)
618
618
}
619
619
@@ -659,21 +659,21 @@ func (c *ClosingSig) RandTestMessage(t *rapid.T) Message {
659
659
if includeCloserNoClosee {
660
660
sig := RandSignature (t )
661
661
msg .CloserNoClosee = tlv .SomeRecordT (
662
- tlv.NewRecordT [tlv.TlvType1 , Sig ](sig ),
662
+ tlv.NewRecordT [tlv.TlvType1 ](sig ),
663
663
)
664
664
}
665
665
666
666
if includeNoCloserClosee {
667
667
sig := RandSignature (t )
668
668
msg .NoCloserClosee = tlv .SomeRecordT (
669
- tlv.NewRecordT [tlv.TlvType2 , Sig ](sig ),
669
+ tlv.NewRecordT [tlv.TlvType2 ](sig ),
670
670
)
671
671
}
672
672
673
673
if includeCloserAndClosee {
674
674
sig := RandSignature (t )
675
675
msg .CloserAndClosee = tlv .SomeRecordT (
676
- tlv.NewRecordT [tlv.TlvType3 , Sig ](sig ),
676
+ tlv.NewRecordT [tlv.TlvType3 ](sig ),
677
677
)
678
678
}
679
679
@@ -1222,7 +1222,7 @@ func (o *OpenChannel) RandTestMessage(t *rapid.T) Message {
1222
1222
if includeLocalNonce {
1223
1223
nonce := RandMusig2Nonce (t )
1224
1224
localNonce = tlv .SomeRecordT (
1225
- tlv.NewRecordT [NonceRecordTypeT , Musig2Nonce ](nonce ),
1225
+ tlv.NewRecordT [NonceRecordTypeT ](nonce ),
1226
1226
)
1227
1227
}
1228
1228
@@ -1524,7 +1524,7 @@ func (c *RevokeAndAck) RandTestMessage(t *rapid.T) Message {
1524
1524
copy (nonce [:], nonceBytes )
1525
1525
1526
1526
msg .LocalNonce = tlv .SomeRecordT (
1527
- tlv.NewRecordT [NonceRecordTypeT , Musig2Nonce ](nonce ),
1527
+ tlv.NewRecordT [NonceRecordTypeT ](nonce ),
1528
1528
)
1529
1529
}
1530
1530
0 commit comments