Skip to content

Commit

Permalink
continue if processing incorrect rollup (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
kstoykov authored Jul 10, 2024
1 parent c964b86 commit fdcbea6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zk/stages/stage_l1_sequencer_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Loop:
case contracts.CreateNewRollupTopic:
rollupId := l.Topics[1].Big().Uint64()
if rollupId != cfg.zkCfg.L1RollupId {
return fmt.Errorf("received CreateNewRollupTopic for unknown rollup id: %v", rollupId)
continue
}
rollupTypeBytes := l.Data[0:32]
rollupType := new(big.Int).SetBytes(rollupTypeBytes).Uint64()
Expand All @@ -118,7 +118,6 @@ Loop:
case contracts.UpdateRollupTopic:
rollupId := l.Topics[1].Big().Uint64()
if rollupId != cfg.zkCfg.L1RollupId {
log.Warn("received UpdateRollupTopic for unknown rollup id", "rollupId", rollupId)
continue
}
newRollupBytes := l.Data[0:32]
Expand Down

0 comments on commit fdcbea6

Please sign in to comment.