Skip to content

Commit 061db8d

Browse files
ToniRamirezMStefan-Ethernal
authored andcommitted
change imstateroot handling in DS (0xPolygon#3698)
* change imstateroot handling in DS
1 parent 9f0bbc1 commit 061db8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sequencer/sequencer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,10 @@ func (s *Sequencer) sendDataToStreamer(chainID uint64) {
349349
ImStateRoot: l2Transaction.ImStateRoot.Bytes(),
350350
}
351351

352-
// Clear the state root if the ForkID is >= ETROG
352+
// Clear the state root if the ForkID is > ETROG
353353
// currently this is redundant as the current implementation of the sequencer
354354
// leaves the ImStateRoot empty
355-
if l2Block.ForkID >= state.FORKID_ETROG {
355+
if l2Block.ForkID > state.FORKID_ETROG {
356356
streamL2Transaction.ImStateRoot = common.Hash{}.Bytes()
357357
}
358358

state/datastream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,8 @@ func GenerateDataStreamFile(ctx context.Context, streamServer *datastreamer.Stre
590590
ImStateRoot: tx.StateRoot.Bytes(),
591591
}
592592

593-
// Clear the state root if the ForkID is >= ETROG
594-
if l2Block.ForkID >= FORKID_ETROG {
593+
// Clear the state root if the ForkID is > ETROG
594+
if l2Block.ForkID > FORKID_ETROG {
595595
transaction.ImStateRoot = common.Hash{}.Bytes()
596596
}
597597

0 commit comments

Comments
 (0)