From 84b40e08a2f80ea0114804e3dfc861b8e95f57e8 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Sun, 12 Aug 2018 20:31:45 +0200 Subject: [PATCH] Start adding tests for rewardsunlock --- qa/rpc-tests/cryptoconditions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qa/rpc-tests/cryptoconditions.py b/qa/rpc-tests/cryptoconditions.py index 849d7daea..9e7ddf8e5 100755 --- a/qa/rpc-tests/cryptoconditions.py +++ b/qa/rpc-tests/cryptoconditions.py @@ -207,6 +207,10 @@ class CryptoConditionsTest (BitcoinTestFramework): result = rpc.rewardsaddfunding("STUFF", txid, "100") assert_equal(result['result'], 'success') + fundingtxid = result['hex'] + assert fundingtxid, "got funding txid" + + result = rpc.rewardsunlock("STUFF", fundingtxid) def run_test (self): print("Mining blocks...")