@@ -593,15 +593,15 @@ func (e *Executor) signHeader(header types.Header) (types.Signature, error) {
593593}
594594
595595// executeTxsWithRetry executes transactions with retry logic
596- func (s * Executor ) executeTxsWithRetry (ctx context.Context , rawTxs [][]byte , header types.Header , currentState types.State ) ([]byte , error ) {
596+ func (e * Executor ) executeTxsWithRetry (ctx context.Context , rawTxs [][]byte , header types.Header , currentState types.State ) ([]byte , error ) {
597597 for attempt := 1 ; attempt <= common .MaxRetriesBeforeHalt ; attempt ++ {
598- newAppHash , _ , err := s .exec .ExecuteTxs (ctx , rawTxs , header .Height (), header .Time (), currentState .AppHash )
598+ newAppHash , _ , err := e .exec .ExecuteTxs (ctx , rawTxs , header .Height (), header .Time (), currentState .AppHash )
599599 if err != nil {
600600 if attempt == common .MaxRetriesBeforeHalt {
601601 return nil , fmt .Errorf ("failed to execute transactions: %w" , err )
602602 }
603603
604- s .logger .Error ().Err (err ).
604+ e .logger .Error ().Err (err ).
605605 Int ("attempt" , attempt ).
606606 Int ("max_attempts" , common .MaxRetriesBeforeHalt ).
607607 Uint64 ("height" , header .Height ()).
@@ -610,8 +610,8 @@ func (s *Executor) executeTxsWithRetry(ctx context.Context, rawTxs [][]byte, hea
610610 select {
611611 case <- time .After (common .MaxRetriesTimeout ):
612612 continue
613- case <- s .ctx .Done ():
614- return nil , fmt .Errorf ("context cancelled during retry: %w" , s .ctx .Err ())
613+ case <- e .ctx .Done ():
614+ return nil , fmt .Errorf ("context cancelled during retry: %w" , e .ctx .Err ())
615615 }
616616 }
617617
0 commit comments