Skip to content

Commit

Permalink
fix: bad block
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Aug 23, 2024
1 parent fa80b3e commit d75e2e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rollup/internal/controller/watcher/l2_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ 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 {
return fmt.Errorf("fetched block does not contain RowConsumption. number: %v", number)
if number == 6279234 {
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 d75e2e2

Please sign in to comment.