Skip to content

Commit

Permalink
fix: pubsub: do not treat ErrExistingNonce as Reject
Browse files Browse the repository at this point in the history
  • Loading branch information
arajasek committed Jun 12, 2023
1 parent 1e29616 commit 4ea6d67
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 @@ -362,6 +362,8 @@ func (mv *MessageValidator) Validate(ctx context.Context, pid peer.ID, msg *pubs
fallthrough
case xerrors.Is(err, messagepool.ErrNonceTooLow):
return pubsub.ValidationIgnore
case xerrors.Is(err, messagepool.ErrExistingNonce):
return pubsub.ValidationIgnore
default:
return pubsub.ValidationReject
}
Expand Down

0 comments on commit 4ea6d67

Please sign in to comment.