fix: pubsub: do not treat ErrExistingNonce as Reject
This commit is contained in:
parent
1ba0e4b997
commit
2a6d0e5f6e
@ -361,6 +361,8 @@ func (mv *MessageValidator) Validate(ctx context.Context, pid peer.ID, msg *pubs
|
|||||||
case xerrors.Is(err, messagepool.ErrGasFeeCapTooLow):
|
case xerrors.Is(err, messagepool.ErrGasFeeCapTooLow):
|
||||||
fallthrough
|
fallthrough
|
||||||
case xerrors.Is(err, messagepool.ErrNonceTooLow):
|
case xerrors.Is(err, messagepool.ErrNonceTooLow):
|
||||||
|
fallthrough
|
||||||
|
case xerrors.Is(err, messagepool.ErrExistingNonce):
|
||||||
return pubsub.ValidationIgnore
|
return pubsub.ValidationIgnore
|
||||||
default:
|
default:
|
||||||
return pubsub.ValidationReject
|
return pubsub.ValidationReject
|
||||||
|
Loading…
Reference in New Issue
Block a user