Skip to content

Commit 355e388

Browse files
authored
Fix no action when optimistic mint (#4610)
1 parent 0debd2b commit 355e388

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

state/factory/workingset.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,8 +689,10 @@ func (ws *workingSet) pickAndRunActions(
689689
}
690690
if err := ws.txValidator.ValidateWithState(ctxWithBlockContext, nextAction); err != nil {
691691
log.L().Debug("failed to ValidateWithState", zap.Uint64("height", ws.height), zap.Error(err))
692-
ap.DeleteAction(nextAction.SenderAddress())
693-
actionIterator.PopAccount()
692+
if !errors.Is(err, action.ErrNonceTooLow) {
693+
ap.DeleteAction(nextAction.SenderAddress())
694+
actionIterator.PopAccount()
695+
}
694696
continue
695697
}
696698
actionCtx, err := withActionCtx(ctxWithBlockContext, nextAction)

0 commit comments

Comments
 (0)