Skip to content

Commit

Permalink
fix err handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Liuhaai committed Jun 2, 2022
1 parent 6045fe5 commit 35b657b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion state/factory/workingset.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,13 @@ func (ws *workingSet) pickAndRunActions(
// do nothing
case action.ErrChainID, errUnsupportWeb3Staking:
continue
case action.ErrGasLimit, action.ErrInsufficientFunds, state.ErrNotEnoughBalance:
case action.ErrGasLimit:
actionIterator.PopAccount()
continue
// TODO: move to validator.Validate()
case action.ErrInsufficientFunds, state.ErrNotEnoughBalance:
ap.DeleteAction(nextAction.SrcPubkey().Address())
actionIterator.PopAccount()
default:
nextActionHash, err := nextAction.Hash()
if err != nil {
Expand Down

0 comments on commit 35b657b

Please sign in to comment.