mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
confidential_transactions.py: remove erroneous set_trace, fix race
This commit is contained in:
parent
95d392f868
commit
5421adae70
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue