Skip to content

Commit 63f02ad

Browse files
author
colinlyguo
committed
update status check
1 parent 84ca61b commit 63f02ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rollup/internal/orm/batch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func (o *Batch) UpdateCommitTxHashAndRollupStatus(ctx context.Context, hash stri
419419
return fmt.Errorf("Batch.UpdateCommitTxHashAndRollupStatus error when querying current status: %w, batch hash: %v", err, hash)
420420
}
421421

422-
if types.RollupStatus(currentBatch.RollupStatus) == types.RollupFinalized {
422+
if types.RollupStatus(currentBatch.RollupStatus) == types.RollupFinalizing || types.RollupStatus(currentBatch.RollupStatus) == types.RollupFinalized {
423423
return nil
424424
}
425425

0 commit comments

Comments
 (0)