Skip to content

Commit

Permalink
[FUNCTIONAL TEST] old coinSpend transaction rejected.
Browse files Browse the repository at this point in the history
  • Loading branch information
furszy committed May 23, 2019
1 parent 3d0893a commit 88cdfc6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/functional/zerocoin_valid_public_spend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 88cdfc6

Please sign in to comment.