Skip to content

Commit dbf944b

Browse files
arajasekShrenuj Bansal
authored andcommitted
fix: pubsub: do not treat ErrExistingNonce as Reject
1 parent 26dbe51 commit dbf944b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chain/sub/incoming.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ func (mv *MessageValidator) Validate(ctx context.Context, pid peer.ID, msg *pubs
359359
case xerrors.Is(err, messagepool.ErrNonceGap):
360360
fallthrough
361361
case xerrors.Is(err, messagepool.ErrNonceTooLow):
362+
fallthrough
363+
case xerrors.Is(err, messagepool.ErrExistingNonce):
362364
return pubsub.ValidationIgnore
363365
default:
364366
return pubsub.ValidationReject

0 commit comments

Comments
 (0)