@@ -887,6 +887,7 @@ where
887887 } ,
888888 /// Events for secondary raptorcast updates
889889 SecondaryRaptorcastPeersUpdate {
890+ expiry_round : Round ,
890891 confirm_group_peers : Vec < NodeId < SCT :: NodeIdPubKey > > ,
891892 } ,
892893}
@@ -930,9 +931,11 @@ where
930931 . field ( "response" , response)
931932 . finish ( ) ,
932933 Self :: SecondaryRaptorcastPeersUpdate {
934+ expiry_round,
933935 confirm_group_peers,
934936 } => f
935937 . debug_struct ( "BlockSyncSecondaryRaptorcastEvent" )
938+ . field ( "expiry_round" , expiry_round)
936939 . field ( "confirm_group_peers" , confirm_group_peers)
937940 . finish ( ) ,
938941 Self :: Timeout ( request) => f. debug_struct ( "Timeout" ) . field ( "request" , request) . finish ( ) ,
@@ -979,9 +982,10 @@ where
979982 encode_list :: < _ , dyn Encodable > ( & enc, out) ;
980983 }
981984 Self :: SecondaryRaptorcastPeersUpdate {
985+ expiry_round,
982986 confirm_group_peers,
983987 } => {
984- let enc: [ & dyn Encodable ; 2 ] = [ & 7u8 , & confirm_group_peers] ;
988+ let enc: [ & dyn Encodable ; 3 ] = [ & 7u8 , & expiry_round , & confirm_group_peers] ;
985989 encode_list :: < _ , dyn Encodable > ( & enc, out) ;
986990 }
987991 }
@@ -1031,8 +1035,10 @@ where
10311035 Ok ( Self :: SelfResponse { response } )
10321036 }
10331037 7 => {
1038+ let expiry_round = Round :: decode ( & mut payload) ?;
10341039 let confirm_group_peers = Vec :: < NodeId < SCT :: NodeIdPubKey > > :: decode ( & mut payload) ?;
10351040 Ok ( Self :: SecondaryRaptorcastPeersUpdate {
1041+ expiry_round,
10361042 confirm_group_peers,
10371043 } )
10381044 }
0 commit comments