@@ -426,153 +426,158 @@ def test_protocol_bytes() -> None:
426
426
assert bytes (message_79 ) == bytes (new_signage_point_harvester )
427
427
428
428
message_bytes , input_bytes = parse_blob (input_bytes )
429
- message_80 = type (new_proof_of_space ).from_bytes (message_bytes )
430
- assert message_80 == new_proof_of_space
431
- assert bytes (message_80 ) == bytes (new_proof_of_space )
429
+ message_80 = type (new_signage_point_harvester2 ).from_bytes (message_bytes )
430
+ assert message_80 == new_signage_point_harvester2
431
+ assert bytes (message_80 ) == bytes (new_signage_point_harvester2 )
432
432
433
433
message_bytes , input_bytes = parse_blob (input_bytes )
434
- message_81 = type (request_signatures ).from_bytes (message_bytes )
435
- assert message_81 == request_signatures
436
- assert bytes (message_81 ) == bytes (request_signatures )
434
+ message_81 = type (new_proof_of_space ).from_bytes (message_bytes )
435
+ assert message_81 == new_proof_of_space
436
+ assert bytes (message_81 ) == bytes (new_proof_of_space )
437
437
438
438
message_bytes , input_bytes = parse_blob (input_bytes )
439
- message_82 = type (respond_signatures ).from_bytes (message_bytes )
440
- assert message_82 == respond_signatures
441
- assert bytes (message_82 ) == bytes (respond_signatures )
439
+ message_82 = type (request_signatures ).from_bytes (message_bytes )
440
+ assert message_82 == request_signatures
441
+ assert bytes (message_82 ) == bytes (request_signatures )
442
442
443
443
message_bytes , input_bytes = parse_blob (input_bytes )
444
- message_83 = type (plot ).from_bytes (message_bytes )
445
- assert message_83 == plot
446
- assert bytes (message_83 ) == bytes (plot )
444
+ message_83 = type (respond_signatures ).from_bytes (message_bytes )
445
+ assert message_83 == respond_signatures
446
+ assert bytes (message_83 ) == bytes (respond_signatures )
447
447
448
448
message_bytes , input_bytes = parse_blob (input_bytes )
449
- message_84 = type (request_plots ).from_bytes (message_bytes )
450
- assert message_84 == request_plots
451
- assert bytes (message_84 ) == bytes (request_plots )
449
+ message_84 = type (plot ).from_bytes (message_bytes )
450
+ assert message_84 == plot
451
+ assert bytes (message_84 ) == bytes (plot )
452
452
453
453
message_bytes , input_bytes = parse_blob (input_bytes )
454
- message_85 = type (respond_plots ).from_bytes (message_bytes )
455
- assert message_85 == respond_plots
456
- assert bytes (message_85 ) == bytes (respond_plots )
454
+ message_85 = type (request_plots ).from_bytes (message_bytes )
455
+ assert message_85 == request_plots
456
+ assert bytes (message_85 ) == bytes (request_plots )
457
457
458
458
message_bytes , input_bytes = parse_blob (input_bytes )
459
- message_86 = type (request_peers_introducer ).from_bytes (message_bytes )
460
- assert message_86 == request_peers_introducer
461
- assert bytes (message_86 ) == bytes (request_peers_introducer )
459
+ message_86 = type (respond_plots ).from_bytes (message_bytes )
460
+ assert message_86 == respond_plots
461
+ assert bytes (message_86 ) == bytes (respond_plots )
462
462
463
463
message_bytes , input_bytes = parse_blob (input_bytes )
464
- message_87 = type (respond_peers_introducer ).from_bytes (message_bytes )
465
- assert message_87 == respond_peers_introducer
466
- assert bytes (message_87 ) == bytes (respond_peers_introducer )
464
+ message_87 = type (request_peers_introducer ).from_bytes (message_bytes )
465
+ assert message_87 == request_peers_introducer
466
+ assert bytes (message_87 ) == bytes (request_peers_introducer )
467
467
468
468
message_bytes , input_bytes = parse_blob (input_bytes )
469
- message_88 = type (authentication_payload ).from_bytes (message_bytes )
470
- assert message_88 == authentication_payload
471
- assert bytes (message_88 ) == bytes (authentication_payload )
469
+ message_88 = type (respond_peers_introducer ).from_bytes (message_bytes )
470
+ assert message_88 == respond_peers_introducer
471
+ assert bytes (message_88 ) == bytes (respond_peers_introducer )
472
472
473
473
message_bytes , input_bytes = parse_blob (input_bytes )
474
- message_89 = type (get_pool_info_response ).from_bytes (message_bytes )
475
- assert message_89 == get_pool_info_response
476
- assert bytes (message_89 ) == bytes (get_pool_info_response )
474
+ message_89 = type (authentication_payload ).from_bytes (message_bytes )
475
+ assert message_89 == authentication_payload
476
+ assert bytes (message_89 ) == bytes (authentication_payload )
477
477
478
478
message_bytes , input_bytes = parse_blob (input_bytes )
479
- message_90 = type (post_partial_payload ).from_bytes (message_bytes )
480
- assert message_90 == post_partial_payload
481
- assert bytes (message_90 ) == bytes (post_partial_payload )
479
+ message_90 = type (get_pool_info_response ).from_bytes (message_bytes )
480
+ assert message_90 == get_pool_info_response
481
+ assert bytes (message_90 ) == bytes (get_pool_info_response )
482
482
483
483
message_bytes , input_bytes = parse_blob (input_bytes )
484
- message_91 = type (post_partial_request ).from_bytes (message_bytes )
485
- assert message_91 == post_partial_request
486
- assert bytes (message_91 ) == bytes (post_partial_request )
484
+ message_91 = type (post_partial_payload ).from_bytes (message_bytes )
485
+ assert message_91 == post_partial_payload
486
+ assert bytes (message_91 ) == bytes (post_partial_payload )
487
487
488
488
message_bytes , input_bytes = parse_blob (input_bytes )
489
- message_92 = type (post_partial_response ).from_bytes (message_bytes )
490
- assert message_92 == post_partial_response
491
- assert bytes (message_92 ) == bytes (post_partial_response )
489
+ message_92 = type (post_partial_request ).from_bytes (message_bytes )
490
+ assert message_92 == post_partial_request
491
+ assert bytes (message_92 ) == bytes (post_partial_request )
492
492
493
493
message_bytes , input_bytes = parse_blob (input_bytes )
494
- message_93 = type (get_farmer_response ).from_bytes (message_bytes )
495
- assert message_93 == get_farmer_response
496
- assert bytes (message_93 ) == bytes (get_farmer_response )
494
+ message_93 = type (post_partial_response ).from_bytes (message_bytes )
495
+ assert message_93 == post_partial_response
496
+ assert bytes (message_93 ) == bytes (post_partial_response )
497
497
498
498
message_bytes , input_bytes = parse_blob (input_bytes )
499
- message_94 = type (post_farmer_payload ).from_bytes (message_bytes )
500
- assert message_94 == post_farmer_payload
501
- assert bytes (message_94 ) == bytes (post_farmer_payload )
499
+ message_94 = type (get_farmer_response ).from_bytes (message_bytes )
500
+ assert message_94 == get_farmer_response
501
+ assert bytes (message_94 ) == bytes (get_farmer_response )
502
502
503
503
message_bytes , input_bytes = parse_blob (input_bytes )
504
- message_95 = type (post_farmer_request ).from_bytes (message_bytes )
505
- assert message_95 == post_farmer_request
506
- assert bytes (message_95 ) == bytes (post_farmer_request )
504
+ message_95 = type (post_farmer_payload ).from_bytes (message_bytes )
505
+ assert message_95 == post_farmer_payload
506
+ assert bytes (message_95 ) == bytes (post_farmer_payload )
507
507
508
508
message_bytes , input_bytes = parse_blob (input_bytes )
509
- message_96 = type (post_farmer_response ).from_bytes (message_bytes )
510
- assert message_96 == post_farmer_response
511
- assert bytes (message_96 ) == bytes (post_farmer_response )
509
+ message_96 = type (post_farmer_request ).from_bytes (message_bytes )
510
+ assert message_96 == post_farmer_request
511
+ assert bytes (message_96 ) == bytes (post_farmer_request )
512
512
513
513
message_bytes , input_bytes = parse_blob (input_bytes )
514
- message_97 = type (put_farmer_payload ).from_bytes (message_bytes )
515
- assert message_97 == put_farmer_payload
516
- assert bytes (message_97 ) == bytes (put_farmer_payload )
514
+ message_97 = type (post_farmer_response ).from_bytes (message_bytes )
515
+ assert message_97 == post_farmer_response
516
+ assert bytes (message_97 ) == bytes (post_farmer_response )
517
517
518
518
message_bytes , input_bytes = parse_blob (input_bytes )
519
- message_98 = type (put_farmer_request ).from_bytes (message_bytes )
520
- assert message_98 == put_farmer_request
521
- assert bytes (message_98 ) == bytes (put_farmer_request )
519
+ message_98 = type (put_farmer_payload ).from_bytes (message_bytes )
520
+ assert message_98 == put_farmer_payload
521
+ assert bytes (message_98 ) == bytes (put_farmer_payload )
522
522
523
523
message_bytes , input_bytes = parse_blob (input_bytes )
524
- message_99 = type (put_farmer_response ).from_bytes (message_bytes )
525
- assert message_99 == put_farmer_response
526
- assert bytes (message_99 ) == bytes (put_farmer_response )
524
+ message_99 = type (put_farmer_request ).from_bytes (message_bytes )
525
+ assert message_99 == put_farmer_request
526
+ assert bytes (message_99 ) == bytes (put_farmer_request )
527
527
528
528
message_bytes , input_bytes = parse_blob (input_bytes )
529
- message_100 = type (error_response ).from_bytes (message_bytes )
530
- assert message_100 == error_response
531
- assert bytes (message_100 ) == bytes (error_response )
529
+ message_100 = type (put_farmer_response ).from_bytes (message_bytes )
530
+ assert message_100 == put_farmer_response
531
+ assert bytes (message_100 ) == bytes (put_farmer_response )
532
532
533
533
message_bytes , input_bytes = parse_blob (input_bytes )
534
- message_101 = type (new_peak_timelord ).from_bytes (message_bytes )
535
- assert message_101 == new_peak_timelord
536
- assert bytes (message_101 ) == bytes (new_peak_timelord )
534
+ message_101 = type (error_response ).from_bytes (message_bytes )
535
+ assert message_101 == error_response
536
+ assert bytes (message_101 ) == bytes (error_response )
537
537
538
538
message_bytes , input_bytes = parse_blob (input_bytes )
539
- message_102 = type (new_unfinished_block_timelord ).from_bytes (message_bytes )
540
- assert message_102 == new_unfinished_block_timelord
541
- assert bytes (message_102 ) == bytes (new_unfinished_block_timelord )
539
+ message_102 = type (new_peak_timelord ).from_bytes (message_bytes )
540
+ assert message_102 == new_peak_timelord
541
+ assert bytes (message_102 ) == bytes (new_peak_timelord )
542
542
543
543
message_bytes , input_bytes = parse_blob (input_bytes )
544
- message_103 = type (new_infusion_point_vdf ).from_bytes (message_bytes )
545
- assert message_103 == new_infusion_point_vdf
546
- assert bytes (message_103 ) == bytes (new_infusion_point_vdf )
544
+ message_103 = type (new_unfinished_block_timelord ).from_bytes (message_bytes )
545
+ assert message_103 == new_unfinished_block_timelord
546
+ assert bytes (message_103 ) == bytes (new_unfinished_block_timelord )
547
547
548
548
message_bytes , input_bytes = parse_blob (input_bytes )
549
- message_104 = type (new_signage_point_vdf ).from_bytes (message_bytes )
550
- assert message_104 == new_signage_point_vdf
551
- assert bytes (message_104 ) == bytes (new_signage_point_vdf )
549
+ message_104 = type (new_infusion_point_vdf ).from_bytes (message_bytes )
550
+ assert message_104 == new_infusion_point_vdf
551
+ assert bytes (message_104 ) == bytes (new_infusion_point_vdf )
552
552
553
553
message_bytes , input_bytes = parse_blob (input_bytes )
554
- message_105 = type (new_end_of_sub_slot_bundle ).from_bytes (message_bytes )
555
- assert message_105 == new_end_of_sub_slot_bundle
556
- assert bytes (message_105 ) == bytes (new_end_of_sub_slot_bundle )
554
+ message_105 = type (new_signage_point_vdf ).from_bytes (message_bytes )
555
+ assert message_105 == new_signage_point_vdf
556
+ assert bytes (message_105 ) == bytes (new_signage_point_vdf )
557
557
558
558
message_bytes , input_bytes = parse_blob (input_bytes )
559
- message_106 = type (request_compact_proof_of_time ).from_bytes (message_bytes )
560
- assert message_106 == request_compact_proof_of_time
561
- assert bytes (message_106 ) == bytes (request_compact_proof_of_time )
559
+ message_106 = type (new_end_of_sub_slot_bundle ).from_bytes (message_bytes )
560
+ assert message_106 == new_end_of_sub_slot_bundle
561
+ assert bytes (message_106 ) == bytes (new_end_of_sub_slot_bundle )
562
562
563
563
message_bytes , input_bytes = parse_blob (input_bytes )
564
- message_107 = type (respond_compact_proof_of_time ).from_bytes (message_bytes )
565
- assert message_107 == respond_compact_proof_of_time
566
- assert bytes (message_107 ) == bytes (respond_compact_proof_of_time )
564
+ message_107 = type (request_compact_proof_of_time ).from_bytes (message_bytes )
565
+ assert message_107 == request_compact_proof_of_time
566
+ assert bytes (message_107 ) == bytes (request_compact_proof_of_time )
567
567
568
568
message_bytes , input_bytes = parse_blob (input_bytes )
569
- message_108 = type (error_without_data ).from_bytes (message_bytes )
570
- assert message_108 == error_without_data
571
- assert bytes (message_108 ) == bytes (error_without_data )
569
+ message_108 = type (respond_compact_proof_of_time ).from_bytes (message_bytes )
570
+ assert message_108 == respond_compact_proof_of_time
571
+ assert bytes (message_108 ) == bytes (respond_compact_proof_of_time )
572
572
573
573
message_bytes , input_bytes = parse_blob (input_bytes )
574
- message_109 = type (error_with_data ).from_bytes (message_bytes )
575
- assert message_109 == error_with_data
576
- assert bytes (message_109 ) == bytes (error_with_data )
574
+ message_109 = type (error_without_data ).from_bytes (message_bytes )
575
+ assert message_109 == error_without_data
576
+ assert bytes (message_109 ) == bytes (error_without_data )
577
+
578
+ message_bytes , input_bytes = parse_blob (input_bytes )
579
+ message_110 = type (error_with_data ).from_bytes (message_bytes )
580
+ assert message_110 == error_with_data
581
+ assert bytes (message_110 ) == bytes (error_with_data )
577
582
578
583
assert input_bytes == b""
0 commit comments