Merge pull request #10973 from filecoin-project/asr/fix-existing-nonce

fix: pubsub: do not treat ErrExistingNonce as Reject
This commit is contained in:
Aayush Rajasekaran 2023-06-13 09:25:11 -05:00 committed by GitHub
commit 4ca5b0ede9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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