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