Skip to content

Commit 88cdfc6

Browse files
committed
[FUNCTIONAL TEST] old coinSpend transaction rejected.
1 parent 3d0893a commit 88cdfc6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/functional/zerocoin_valid_public_spend.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,18 @@ def run_test(self):
8585

8686
self.log.info("%s DOUBLE SPENT SERIAL NOT VERIFIED, TEST PASSED" % self.__class__.__name__)
8787

88+
self.log.info("%s Trying to spend using the old coin spend method.." % self.__class__.__name__)
89+
90+
tx = None
91+
try:
92+
tx = self.node.spendzerocoin(DENOM_TO_USE, False, False, "", False)
93+
raise AssertionError("TEST FAILED, old coinSpend spent")
94+
except JSONRPCException as e:
95+
self.log.info("GOOD: spendzerocoin old spend did not verify")
96+
97+
98+
self.log.info("%s OLD COIN SPEND NON USABLE ANYMORE, TEST PASSED" % self.__class__.__name__)
99+
100+
88101
if __name__ == '__main__':
89102
zPIVValidCoinSpendTest().main()

0 commit comments

Comments
 (0)