Skip to content

Commit

Permalink
op-node: Check l1 inclusion time for span batch
Browse files Browse the repository at this point in the history
  • Loading branch information
pcw109550 authored and ImTei committed Nov 1, 2023
1 parent ad0bdd6 commit 8b1df75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-node/rollup/derive/batches.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func CheckBatch(ctx context.Context, cfg *rollup.Config, log log.Logger, l1Block
log.Error("failed type assertion to SpanBatch")
return BatchDrop
}
if !cfg.IsSpanBatch(batch.Batch.GetTimestamp()) {
if !cfg.IsSpanBatch(batch.Batch.GetTimestamp()) || !cfg.IsSpanBatch(batch.L1InclusionBlock.Time) {
log.Warn("received SpanBatch before SpanBatch hard fork")
return BatchDrop
}
Expand Down

0 comments on commit 8b1df75

Please sign in to comment.