From 1399f859e0dab9bcd55b64c3d0a7b69dcc534bf2 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Thu, 9 Aug 2018 08:53:24 +0200 Subject: [PATCH] Mine more blocks to ensure a mature balance --- qa/rpc-tests/cryptoconditions.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/qa/rpc-tests/cryptoconditions.py b/qa/rpc-tests/cryptoconditions.py index 8be0a69bf..2784a5823 100755 --- a/qa/rpc-tests/cryptoconditions.py +++ b/qa/rpc-tests/cryptoconditions.py @@ -53,12 +53,20 @@ class CryptoConditionsTest (BitcoinTestFramework): def run_test (self): print("Mining blocks...") rpc = self.nodes[0] - rpc.generate(1) + + # utxos from block 1 become mature in block 101 + rpc.generate(101) self.sync_all() + # this corresponds to -pubkey above print("Importing privkey") rpc.importprivkey(self.privkey) + result = rpc.getwalletinfo() + # basic sanity tests + assert_equal(result['txcount'], 101) + assert_greater_than(result['balance'], 0.0) + # Begin actual CC tests # Faucet tests @@ -72,7 +80,7 @@ class CryptoConditionsTest (BitcoinTestFramework): assert_equal(result['result'], 'success') # fails - #result = rpc.faucetfund(1) + #result = rpc.faucetfund(-1.0) # Dice tests dice = rpc.diceaddress()