@@ -71,8 +71,8 @@ func (e *Engine) Run() {
7171 }
7272 _ , id , _ := e .stack .Staker ().FirstActive ()
7373 if ! id .IsZero () {
74- e .generateValidatorCycles (best .( * api. JSONExpandedBlock ) )
75- e .generateDelegatorCycles (best .( * api. JSONExpandedBlock ) )
74+ e .generateValidatorCycles (best )
75+ e .generateDelegatorCycles (best )
7676 }
7777 delegationStatus := make (map [Status ]int )
7878 validationStatus := make (map [Status ]int )
@@ -87,7 +87,7 @@ func (e *Engine) Run() {
8787 }
8888 if lifecycle .Status () != StatusWithdrawn {
8989 e .workerPool .Run (func () {
90- if err := lifecycle .Process (best .( * api. JSONExpandedBlock ). Number ); err != nil {
90+ if err := lifecycle .Process (best .Number ); err != nil {
9191 slog .Error ("failed to process lifecycle" , "type" , lifecycle .Type (), "id" , lifecycle .ID (), "error" , err )
9292 }
9393 })
@@ -139,11 +139,11 @@ func (e *Engine) Flush(status Status) error {
139139 for _ , lifecycle := range e .lifecycles {
140140 e .workerPool .Run (func (l Lifecycle , current * api.JSONExpandedBlock ) Worker {
141141 return func () {
142- if err := lifecycle .Process (best .( * api. JSONExpandedBlock ). Number ); err != nil {
142+ if err := lifecycle .Process (best .Number ); err != nil {
143143 slog .Error ("failed to process lifecycle" , "type" , lifecycle .Type (), "id" , lifecycle .ID (), "error" , err )
144144 }
145145 }
146- }(lifecycle , best .( * api. JSONExpandedBlock ) ))
146+ }(lifecycle , best ))
147147 }
148148
149149 processed = true
0 commit comments