@@ -426,153 +426,158 @@ def test_protocol_bytes() -> None:
426426 assert bytes (message_79 ) == bytes (new_signage_point_harvester )
427427
428428 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 )
432432
433433 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 )
437437
438438 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 )
442442
443443 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 )
447447
448448 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 )
452452
453453 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 )
457457
458458 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 )
462462
463463 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 )
467467
468468 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 )
472472
473473 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 )
477477
478478 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 )
482482
483483 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 )
487487
488488 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 )
492492
493493 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 )
497497
498498 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 )
502502
503503 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 )
507507
508508 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 )
512512
513513 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 )
517517
518518 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 )
522522
523523 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 )
527527
528528 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 )
532532
533533 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 )
537537
538538 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 )
542542
543543 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 )
547547
548548 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 )
552552
553553 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 )
557557
558558 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 )
562562
563563 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 )
567567
568568 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 )
572572
573573 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 )
577582
578583 assert input_bytes == b""
0 commit comments