if ok := c.txPool.HaveTransaction(&tx.ID); ok {
return false, c.txPool.GetErrCache(&tx.ID)
}
+
+ 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")
+ }
+
bh := c.BestBlockHeader()
block := types.MapBlock(&types.Block{BlockHeader: *bh})
gasStatus, err := validation.ValidateTx(tx.Tx, block)