Skip to content

Commit

Permalink
tweak(l1sync): disgard logs for wrong rollupid
Browse files Browse the repository at this point in the history
  • Loading branch information
revitteth committed Aug 28, 2024
1 parent 6e1e149 commit 4409b4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zk/stages/stage_l1syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ func parseLogType(l1RollupId uint64, log *ethTypes.Log) (l1BatchInfo types.L1Bat
stateRoot, l1InfoRoot common.Hash
)

if l1RollupId != 1 && isRollupIdMatching == false {
return types.L1BatchInfo{}, logIncompatible
}

switch log.Topics[0] {
case contracts.SequencedBatchTopicPreEtrog:
batchLogType = logSequence
Expand Down

0 comments on commit 4409b4f

Please sign in to comment.