Skip to content

Commit

Permalink
remove if
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Aug 23, 2024
1 parent d75e2e2 commit 29ff90f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions rollup/internal/controller/watcher/l2_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,9 @@ func (w *L2WatcherClient) getAndStoreBlocks(ctx context.Context, from, to uint64
return fmt.Errorf("failed to GetBlockByNumberOrHash: %v. number: %v", err, number)
}
if block.RowConsumption == nil {
if number == 6279234 {
block.RowConsumption = &gethTypes.RowConsumption{}
} else {
return fmt.Errorf("fetched block does not contain RowConsumption. number: %v", number)
}
block.RowConsumption = &gethTypes.RowConsumption{}
} else {
return fmt.Errorf("fetched block does not contain RowConsumption. number: %v", number)
}

log.Info("retrieved block", "height", block.Header().Number, "hash", block.Header().Hash().String())
Expand Down

0 comments on commit 29ff90f

Please sign in to comment.