From 5421adae70ccfc3ba306f95caf9ae5bfdc8a1d7c Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Tue, 21 Feb 2017 17:39:00 -0800 Subject: [PATCH] confidential_transactions.py: remove erroneous set_trace, fix race --- qa/rpc-tests/confidential_transactions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qa/rpc-tests/confidential_transactions.py b/qa/rpc-tests/confidential_transactions.py index 3676934a09..4ff5ca28dd 100755 --- a/qa/rpc-tests/confidential_transactions.py +++ b/qa/rpc-tests/confidential_transactions.py @@ -250,6 +250,8 @@ class CTTest (BitcoinTestFramework): self.nodes[0].sendtoaddress(addr, 5) self.nodes[0].sendmany("", {addr:1, self.nodes[2].getnewaddress():13}, 0, "", [], {addr:"testasset"}) + self.sync_all() + # Should have exactly 1 in change(trusted, though not confirmed) after sending one off assert_equal(self.nodes[0].getbalance("doesntmatter", 0, False, "testasset"), 1) self.nodes[2].addassetlabel(asset_list["testasset"], "testasset") @@ -266,7 +268,6 @@ class CTTest (BitcoinTestFramework): for i in range(2): rawaddrs.append(self.nodes[1].getnewaddress()) - set_trace() raw_assets = self.nodes[2].createrawtransaction([{"txid":b_utxos[0]['txid'], "vout":b_utxos[0]['vout'], "nValue":b_utxos[0]['amount']}, {"txid":b_utxos[1]['txid'], "vout":b_utxos[1]['vout'], "nValue":b_utxos[1]['amount'], "assetid":b_utxos[1]['assetid']}, {"txid":t_utxos[0]['txid'], "vout":t_utxos[0]['vout'], "nValue":t_utxos[0]['amount'], "assetid":t_utxos[0]['assetid']}], {rawaddrs[1]:Decimal(t_utxos[0]['amount']), rawaddrs[0]:Decimal(b_utxos[0]['amount']+b_utxos[1]['amount']-Decimal("0.01"))}, 0, {rawaddrs[0]:b_utxos[0]['assetid'], rawaddrs[1]:t_utxos[0]['assetid']}) # Sign unblinded, then blinded