- if ok := c.txPool.IsWithdrawSpent(tx); ok {
- log.WithFields(log.Fields{"module": "ValidateTx", "error": "Cliam transactions already exist in the trading pool"}).Error("chain error")
- return false, errors.New("Cliam transactions already exist in the trading pool")
+ if c.txPool.IsDust(tx) {
+ c.txPool.AddErrCache(&tx.ID, ErrDustTx)
+ return false, ErrDustTx