File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ func (eq *EngineQueue) Step(ctx context.Context) error {
316
316
if eq .safeAttributes != nil {
317
317
return eq .tryNextSafeAttributes (ctx )
318
318
}
319
- outOfData := false
319
+
320
320
newOrigin := eq .prev .Origin ()
321
321
// Check if the L2 unsafe head origin is consistent with the new origin
322
322
if err := eq .verifyNewL1Origin (ctx , newOrigin ); err != nil {
@@ -332,7 +332,7 @@ func (eq *EngineQueue) Step(ctx context.Context) error {
332
332
return err
333
333
}
334
334
if next , err := eq .prev .NextAttributes (ctx , eq .ec .PendingSafeL2Head ()); err == io .EOF {
335
- outOfData = true
335
+ return io . EOF
336
336
} else if err != nil {
337
337
return err
338
338
} else {
@@ -341,12 +341,6 @@ func (eq *EngineQueue) Step(ctx context.Context) error {
341
341
"pending_safe_head" , eq .ec .PendingSafeL2Head (), "next" , next )
342
342
return NotEnoughData
343
343
}
344
-
345
- if outOfData {
346
- return io .EOF
347
- } else {
348
- return nil
349
- }
350
344
}
351
345
352
346
// verifyNewL1Origin checks that the L2 unsafe head still has a L1 origin that is on the canonical chain.
You can’t perform that action at this time.
0 commit comments