Skip to content

Commit

Permalink
Fix/rom error (#3177)
Browse files Browse the repository at this point in the history
* fix rom error

* linter

* fix
  • Loading branch information
ARR552 authored Jan 31, 2024
1 parent efbd360 commit 6b49ba8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions state/batchV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ func (s *State) ProcessAndStoreClosedBatchV2(ctx context.Context, processingCtx
return common.Hash{}, noFlushID, noProverID, err
}
processed, err := s.processBatchV2(ctx, &processingCtx, caller, dbTx)
if err != nil {
if err != nil && processed.ErrorRom == executor.RomError_ROM_ERROR_NO_ERROR {
log.Errorf("%s error processBatchV2: %v", debugPrefix, err)
return common.Hash{}, noFlushID, noProverID, err
}
Expand All @@ -392,7 +392,7 @@ func (s *State) ProcessAndStoreClosedBatchV2(ctx context.Context, processingCtx
log.Errorf("%s error isRomOOCError: %v", debugPrefix, err)
}

if len(processedBatch.BlockResponses) > 0 && !processedBatch.IsRomOOCError {
if len(processedBatch.BlockResponses) > 0 && !processedBatch.IsRomOOCError && processedBatch.RomError_V2 == nil {
for _, blockResponse := range processedBatch.BlockResponses {
err = s.StoreL2Block(ctx, processingCtx.BatchNumber, blockResponse, nil, dbTx)
if err != nil {
Expand Down

0 comments on commit 6b49ba8

Please sign in to comment.