@@ -159,23 +159,6 @@ func TestMessage(t *testing.T) {
159
159
bypassThrottling : false ,
160
160
bytesSaved : false ,
161
161
},
162
- {
163
- desc : "get_peer_list message with gzip compression" ,
164
- op : GetPeerListOp ,
165
- msg : & p2p.Message {
166
- Message : & p2p.Message_GetPeerList {
167
- GetPeerList : & p2p.GetPeerList {
168
- KnownPeers : & p2p.BloomFilter {
169
- Filter : make ([]byte , 2048 ),
170
- Salt : make ([]byte , 32 ),
171
- },
172
- },
173
- },
174
- },
175
- compressionType : compression .TypeGzip ,
176
- bypassThrottling : false ,
177
- bytesSaved : true ,
178
- },
179
162
{
180
163
desc : "get_peer_list message with zstd compression" ,
181
164
op : GetPeerListOp ,
@@ -215,28 +198,6 @@ func TestMessage(t *testing.T) {
215
198
bypassThrottling : true ,
216
199
bytesSaved : false ,
217
200
},
218
- {
219
- desc : "peer_list message with gzip compression" ,
220
- op : PeerListOp ,
221
- msg : & p2p.Message {
222
- Message : & p2p.Message_PeerList_ {
223
- PeerList_ : & p2p.PeerList {
224
- ClaimedIpPorts : []* p2p.ClaimedIpPort {
225
- {
226
- X509Certificate : testTLSCert .Certificate [0 ],
227
- IpAddr : []byte (net .IPv6zero ),
228
- IpPort : 9651 ,
229
- Timestamp : uint64 (nowUnix ),
230
- Signature : compressibleContainers [0 ],
231
- },
232
- },
233
- },
234
- },
235
- },
236
- compressionType : compression .TypeGzip ,
237
- bypassThrottling : true ,
238
- bytesSaved : true ,
239
- },
240
201
{
241
202
desc : "peer_list message with zstd compression" ,
242
203
op : PeerListOp ,
@@ -291,22 +252,6 @@ func TestMessage(t *testing.T) {
291
252
bypassThrottling : true ,
292
253
bytesSaved : false ,
293
254
},
294
- {
295
- desc : "state_summary_frontier message with gzip compression" ,
296
- op : StateSummaryFrontierOp ,
297
- msg : & p2p.Message {
298
- Message : & p2p.Message_StateSummaryFrontier_ {
299
- StateSummaryFrontier_ : & p2p.StateSummaryFrontier {
300
- ChainId : testID [:],
301
- RequestId : 1 ,
302
- Summary : compressibleContainers [0 ],
303
- },
304
- },
305
- },
306
- compressionType : compression .TypeGzip ,
307
- bypassThrottling : true ,
308
- bytesSaved : true ,
309
- },
310
255
{
311
256
desc : "state_summary_frontier message with zstd compression" ,
312
257
op : StateSummaryFrontierOp ,
@@ -340,23 +285,6 @@ func TestMessage(t *testing.T) {
340
285
bypassThrottling : true ,
341
286
bytesSaved : false ,
342
287
},
343
- {
344
- desc : "get_accepted_state_summary message with gzip compression" ,
345
- op : GetAcceptedStateSummaryOp ,
346
- msg : & p2p.Message {
347
- Message : & p2p.Message_GetAcceptedStateSummary {
348
- GetAcceptedStateSummary : & p2p.GetAcceptedStateSummary {
349
- ChainId : testID [:],
350
- RequestId : 1 ,
351
- Deadline : 1 ,
352
- Heights : []uint64 {0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 },
353
- },
354
- },
355
- },
356
- compressionType : compression .TypeGzip ,
357
- bypassThrottling : true ,
358
- bytesSaved : false ,
359
- },
360
288
{
361
289
desc : "get_accepted_state_summary message with zstd compression" ,
362
290
op : GetAcceptedStateSummaryOp ,
@@ -390,22 +318,6 @@ func TestMessage(t *testing.T) {
390
318
bypassThrottling : true ,
391
319
bytesSaved : false ,
392
320
},
393
- {
394
- desc : "accepted_state_summary message with gzip compression" ,
395
- op : AcceptedStateSummaryOp ,
396
- msg : & p2p.Message {
397
- Message : & p2p.Message_AcceptedStateSummary_ {
398
- AcceptedStateSummary_ : & p2p.AcceptedStateSummary {
399
- ChainId : testID [:],
400
- RequestId : 1 ,
401
- SummaryIds : [][]byte {testID [:], testID [:], testID [:], testID [:], testID [:], testID [:], testID [:], testID [:], testID [:]},
402
- },
403
- },
404
- },
405
- compressionType : compression .TypeGzip ,
406
- bypassThrottling : true ,
407
- bytesSaved : true ,
408
- },
409
321
{
410
322
desc : "accepted_state_summary message with zstd compression" ,
411
323
op : AcceptedStateSummaryOp ,
@@ -523,22 +435,6 @@ func TestMessage(t *testing.T) {
523
435
bypassThrottling : true ,
524
436
bytesSaved : false ,
525
437
},
526
- {
527
- desc : "ancestors message with gzip compression" ,
528
- op : AncestorsOp ,
529
- msg : & p2p.Message {
530
- Message : & p2p.Message_Ancestors_ {
531
- Ancestors_ : & p2p.Ancestors {
532
- ChainId : testID [:],
533
- RequestId : 12345 ,
534
- Containers : compressibleContainers ,
535
- },
536
- },
537
- },
538
- compressionType : compression .TypeGzip ,
539
- bypassThrottling : true ,
540
- bytesSaved : true ,
541
- },
542
438
{
543
439
desc : "ancestors message with zstd compression" ,
544
440
op : AncestorsOp ,
@@ -590,23 +486,6 @@ func TestMessage(t *testing.T) {
590
486
bypassThrottling : true ,
591
487
bytesSaved : false ,
592
488
},
593
- {
594
- desc : "put message with gzip compression" ,
595
- op : PutOp ,
596
- msg : & p2p.Message {
597
- Message : & p2p.Message_Put {
598
- Put : & p2p.Put {
599
- ChainId : testID [:],
600
- RequestId : 1 ,
601
- Container : compressibleContainers [0 ],
602
- EngineType : p2p .EngineType_ENGINE_TYPE_AVALANCHE ,
603
- },
604
- },
605
- },
606
- compressionType : compression .TypeGzip ,
607
- bypassThrottling : true ,
608
- bytesSaved : true ,
609
- },
610
489
{
611
490
desc : "put message with zstd compression" ,
612
491
op : PutOp ,
@@ -642,24 +521,6 @@ func TestMessage(t *testing.T) {
642
521
bypassThrottling : true ,
643
522
bytesSaved : false ,
644
523
},
645
- {
646
- desc : "push_query message with gzip compression" ,
647
- op : PushQueryOp ,
648
- msg : & p2p.Message {
649
- Message : & p2p.Message_PushQuery {
650
- PushQuery : & p2p.PushQuery {
651
- ChainId : testID [:],
652
- RequestId : 1 ,
653
- Deadline : 1 ,
654
- Container : compressibleContainers [0 ],
655
- EngineType : p2p .EngineType_ENGINE_TYPE_AVALANCHE ,
656
- },
657
- },
658
- },
659
- compressionType : compression .TypeGzip ,
660
- bypassThrottling : true ,
661
- bytesSaved : true ,
662
- },
663
524
{
664
525
desc : "push_query message with zstd compression" ,
665
526
op : PushQueryOp ,
@@ -729,23 +590,6 @@ func TestMessage(t *testing.T) {
729
590
bypassThrottling : true ,
730
591
bytesSaved : false ,
731
592
},
732
- {
733
- desc : "app_request message with gzip compression" ,
734
- op : AppRequestOp ,
735
- msg : & p2p.Message {
736
- Message : & p2p.Message_AppRequest {
737
- AppRequest : & p2p.AppRequest {
738
- ChainId : testID [:],
739
- RequestId : 1 ,
740
- Deadline : 1 ,
741
- AppBytes : compressibleContainers [0 ],
742
- },
743
- },
744
- },
745
- compressionType : compression .TypeGzip ,
746
- bypassThrottling : true ,
747
- bytesSaved : true ,
748
- },
749
593
{
750
594
desc : "app_request message with zstd compression" ,
751
595
op : AppRequestOp ,
@@ -779,22 +623,6 @@ func TestMessage(t *testing.T) {
779
623
bypassThrottling : true ,
780
624
bytesSaved : false ,
781
625
},
782
- {
783
- desc : "app_response message with gzip compression" ,
784
- op : AppResponseOp ,
785
- msg : & p2p.Message {
786
- Message : & p2p.Message_AppResponse {
787
- AppResponse : & p2p.AppResponse {
788
- ChainId : testID [:],
789
- RequestId : 1 ,
790
- AppBytes : compressibleContainers [0 ],
791
- },
792
- },
793
- },
794
- compressionType : compression .TypeGzip ,
795
- bypassThrottling : true ,
796
- bytesSaved : true ,
797
- },
798
626
{
799
627
desc : "app_response message with zstd compression" ,
800
628
op : AppResponseOp ,
@@ -826,21 +654,6 @@ func TestMessage(t *testing.T) {
826
654
bypassThrottling : true ,
827
655
bytesSaved : false ,
828
656
},
829
- {
830
- desc : "app_gossip message with gzip compression" ,
831
- op : AppGossipOp ,
832
- msg : & p2p.Message {
833
- Message : & p2p.Message_AppGossip {
834
- AppGossip : & p2p.AppGossip {
835
- ChainId : testID [:],
836
- AppBytes : compressibleContainers [0 ],
837
- },
838
- },
839
- },
840
- compressionType : compression .TypeGzip ,
841
- bypassThrottling : true ,
842
- bytesSaved : true ,
843
- },
844
657
{
845
658
desc : "app_gossip message with zstd compression" ,
846
659
op : AppGossipOp ,
0 commit comments