Skip to content

Commit

Permalink
Merge pull request #10973 from filecoin-project/asr/fix-existing-nonce
Browse files Browse the repository at this point in the history
fix: pubsub: do not treat ErrExistingNonce as Reject
  • Loading branch information
arajasek authored Jun 13, 2023
2 parents 24b958c + 2a6d0e5 commit 4ca5b0e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chain/sub/incoming.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ func (mv *MessageValidator) Validate(ctx context.Context, pid peer.ID, msg *pubs
case xerrors.Is(err, messagepool.ErrGasFeeCapTooLow):
fallthrough
case xerrors.Is(err, messagepool.ErrNonceTooLow):
fallthrough
case xerrors.Is(err, messagepool.ErrExistingNonce):
return pubsub.ValidationIgnore
default:
return pubsub.ValidationReject
Expand Down

0 comments on commit 4ca5b0e

Please sign in to comment.