From 7e865ade0ac1fca4a3125bb5c79f9bdd7761d1f3 Mon Sep 17 00:00:00 2001 From: protolambda Date: Mon, 15 Aug 2022 04:19:29 +0200 Subject: [PATCH] op-batcher: fix channel ID time choice, testnet hotfix --- op-batcher/batch_submitter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op-batcher/batch_submitter.go b/op-batcher/batch_submitter.go index eecc14ce35ac1..4fed5942f0b04 100644 --- a/op-batcher/batch_submitter.go +++ b/op-batcher/batch_submitter.go @@ -299,7 +299,7 @@ mainLoop: l.log.Warn("last submitted block lagged behind L2 safe head: batch submission will continue from the safe head now", "last", l.lastSubmittedBlock, "safe", syncStatus.SafeL2) l.lastSubmittedBlock = syncStatus.SafeL2.ID() } - if ch, err := derive.NewChannelOut(uint64(time.Now().Unix())); err != nil { + if ch, err := derive.NewChannelOut(syncStatus.HeadL1.Time); err != nil { l.log.Error("Error creating channel", "err", err) continue } else {