Commit 8b1df75b authored by pcw109550's avatar pcw109550 Committed by Tei Im

op-node: Check l1 inclusion time for span batch

parent ad0bdd60
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment