@@ -159,12 +159,15 @@ where
159159
160160 fn verify_round (
161161 & self ,
162+ view : View ,
162163 round : Round < S , B , D , Re > ,
163164 ) -> impl Future < Output = RoundOutput < S , B , D , Re , VerifiedVotes < S , D > > > + Send + ' static {
164165 let strategy = self . strategy . clone ( ) ;
165166 let handle =
166167 self . context
167168 . child ( "verify_round" )
169+ . with_attribute ( "epoch" , self . epoch )
170+ . with_attribute ( "view" , view)
168171 . shared ( true )
169172 . spawn ( move |mut context| async move {
170173 let mut round = round;
@@ -184,12 +187,15 @@ where
184187
185188 fn try_construct_notarization (
186189 & self ,
190+ view : View ,
187191 round : Round < S , B , D , Re > ,
188192 ) -> impl Future < Output = RoundOutput < S , B , D , Re , Notarization < S , D > > > + Send + ' static {
189193 let strategy = self . strategy . clone ( ) ;
190194 let handle = self
191195 . context
192196 . child ( "construct_notarization" )
197+ . with_attribute ( "epoch" , self . epoch )
198+ . with_attribute ( "view" , view)
193199 . shared ( true )
194200 . spawn ( move |_| async move {
195201 let mut round = round;
@@ -201,12 +207,15 @@ where
201207
202208 fn try_construct_nullification (
203209 & self ,
210+ view : View ,
204211 round : Round < S , B , D , Re > ,
205212 ) -> impl Future < Output = RoundOutput < S , B , D , Re , Nullification < S > > > + Send + ' static {
206213 let strategy = self . strategy . clone ( ) ;
207214 let handle = self
208215 . context
209216 . child ( "construct_nullification" )
217+ . with_attribute ( "epoch" , self . epoch )
218+ . with_attribute ( "view" , view)
210219 . shared ( true )
211220 . spawn ( move |_| async move {
212221 let mut round = round;
@@ -218,12 +227,15 @@ where
218227
219228 fn try_construct_finalization (
220229 & self ,
230+ view : View ,
221231 round : Round < S , B , D , Re > ,
222232 ) -> impl Future < Output = RoundOutput < S , B , D , Re , Finalization < S , D > > > + Send + ' static {
223233 let strategy = self . strategy . clone ( ) ;
224234 let handle = self
225235 . context
226236 . child ( "construct_finalization" )
237+ . with_attribute ( "epoch" , self . epoch )
238+ . with_attribute ( "view" , view)
227239 . shared ( true )
228240 . spawn ( move |_| async move {
229241 let mut round = round;
@@ -624,7 +636,7 @@ where
624636 || round. ready_finalizes( )
625637 {
626638 let timer = self . verify_latency. timer( self . context. as_ref( ) ) ;
627- let ( round, verified) = self . verify_round( round) . await ;
639+ let ( round, verified) = self . verify_round( updated_view , round) . await ;
628640 ( round, verified. map( |verified| ( timer, verified) ) )
629641 } else {
630642 ( round, None )
@@ -666,7 +678,8 @@ where
666678 // Try to construct and forward certificates
667679 let round = if round. ready_construct_notarization( ) {
668680 let timer = self . recover_latency. timer( self . context. as_ref( ) ) ;
669- let ( round, notarization) = self . try_construct_notarization( round) . await ;
681+ let ( round, notarization) =
682+ self . try_construct_notarization( updated_view, round) . await ;
670683 if let Some ( notarization) = notarization {
671684 timer. observe( self . context. as_ref( ) ) ;
672685 debug!( view = %updated_view, "constructed notarization, forwarding to voter" ) ;
@@ -680,7 +693,8 @@ where
680693 } ;
681694 let round = if round. ready_construct_nullification( ) {
682695 let timer = self . recover_latency. timer( self . context. as_ref( ) ) ;
683- let ( round, nullification) = self . try_construct_nullification( round) . await ;
696+ let ( round, nullification) =
697+ self . try_construct_nullification( updated_view, round) . await ;
684698 if let Some ( nullification) = nullification {
685699 timer. observe( self . context. as_ref( ) ) ;
686700 debug!( view = %updated_view, "constructed nullification, forwarding to voter" ) ;
@@ -692,7 +706,8 @@ where
692706 } ;
693707 let round = if round. ready_construct_finalization( ) {
694708 let timer = self . recover_latency. timer( self . context. as_ref( ) ) ;
695- let ( round, finalization) = self . try_construct_finalization( round) . await ;
709+ let ( round, finalization) =
710+ self . try_construct_finalization( updated_view, round) . await ;
696711 if let Some ( finalization) = finalization {
697712 timer. observe( self . context. as_ref( ) ) ;
698713 debug!( view = %updated_view, "constructed finalization, forwarding to voter" ) ;
0 commit comments