From bdeddb321ebefc688116b261116f84be8f042b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toni=20Ram=C3=ADrez?= <58293609+ToniRamirezM@users.noreply.github.com> Date: Thu, 6 Jun 2024 18:27:27 +0200 Subject: [PATCH] change imstateroot handling in DS (#3698) * change imstateroot handling in DS --- sequencer/sequencer.go | 4 ++-- state/datastream.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sequencer/sequencer.go b/sequencer/sequencer.go index 92909e2946..3f57d9cc85 100644 --- a/sequencer/sequencer.go +++ b/sequencer/sequencer.go @@ -349,10 +349,10 @@ func (s *Sequencer) sendDataToStreamer(chainID uint64) { ImStateRoot: l2Transaction.ImStateRoot.Bytes(), } - // Clear the state root if the ForkID is >= ETROG + // Clear the state root if the ForkID is > ETROG // currently this is redundant as the current implementation of the sequencer // leaves the ImStateRoot empty - if l2Block.ForkID >= state.FORKID_ETROG { + if l2Block.ForkID > state.FORKID_ETROG { streamL2Transaction.ImStateRoot = common.Hash{}.Bytes() } diff --git a/state/datastream.go b/state/datastream.go index ecb211d6c2..236a69df43 100644 --- a/state/datastream.go +++ b/state/datastream.go @@ -590,8 +590,8 @@ func GenerateDataStreamFile(ctx context.Context, streamServer *datastreamer.Stre ImStateRoot: tx.StateRoot.Bytes(), } - // Clear the state root if the ForkID is >= ETROG - if l2Block.ForkID >= FORKID_ETROG { + // Clear the state root if the ForkID is > ETROG + if l2Block.ForkID > FORKID_ETROG { transaction.ImStateRoot = common.Hash{}.Bytes() }