From 88cdfc60ea88ac784718c11094e76c903b1ffe52 Mon Sep 17 00:00:00 2001 From: furszy Date: Wed, 15 May 2019 19:21:05 +0200 Subject: [PATCH] [FUNCTIONAL TEST] old coinSpend transaction rejected. --- test/functional/zerocoin_valid_public_spend.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/functional/zerocoin_valid_public_spend.py b/test/functional/zerocoin_valid_public_spend.py index 70aa867d7e1d2..fc40826536829 100755 --- a/test/functional/zerocoin_valid_public_spend.py +++ b/test/functional/zerocoin_valid_public_spend.py @@ -85,5 +85,18 @@ def run_test(self): self.log.info("%s DOUBLE SPENT SERIAL NOT VERIFIED, TEST PASSED" % self.__class__.__name__) + self.log.info("%s Trying to spend using the old coin spend method.." % self.__class__.__name__) + + tx = None + try: + tx = self.node.spendzerocoin(DENOM_TO_USE, False, False, "", False) + raise AssertionError("TEST FAILED, old coinSpend spent") + except JSONRPCException as e: + self.log.info("GOOD: spendzerocoin old spend did not verify") + + + self.log.info("%s OLD COIN SPEND NON USABLE ANYMORE, TEST PASSED" % self.__class__.__name__) + + if __name__ == '__main__': zPIVValidCoinSpendTest().main()