From 2a6d0e5f6e3de0ffecc079148e60bae3bf8ce480 Mon Sep 17 00:00:00 2001 From: Aayush Date: Mon, 12 Jun 2023 19:15:40 -0400 Subject: [PATCH] fix: pubsub: do not treat ErrExistingNonce as Reject --- chain/sub/incoming.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chain/sub/incoming.go b/chain/sub/incoming.go index 64185c4ccc7..d8f63242590 100644 --- a/chain/sub/incoming.go +++ b/chain/sub/incoming.go @@ -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