Skip to content

Commit

Permalink
CA: Tests-py: wallet needs no knowledge of asset hex ids
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimon authored and instagibbs committed Jun 16, 2017
1 parent 8367f04 commit 2c06858
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions qa/rpc-tests/confidential_transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,6 @@ def run_test(self):
assert_equal(self.nodes[0].getwalletinfo("testasset")['balance'], Decimal(2))
assert_equal(self.nodes[0].getwalletinfo(asset_list["testasset"])['balance'], Decimal(2))

try:
self.nodes[1].getwalletinfo(asset_list["testasset"])
raise AssertionError("Wallet has no knowledge of this asset")
except JSONRPCException:
pass

self.nodes[1].addassetlabel(asset_list["testasset"], "testasset2")
assert_equal(self.nodes[1].getwalletinfo("testasset2")['balance'], Decimal(0))

Expand All @@ -234,11 +228,6 @@ def run_test(self):
otherasset = label
assert(otherasset != "")

try:
self.nodes[0].sendtoaddress(self.nodes[2].getnewaddress(), wallet_list[otherasset], "", "", False, otherasset)
raise AssertionError("Can not send assets that aren't labeled")
except JSONRPCException:
pass
# Now send to another wallet's CT address, check received balance
self.nodes[0].addassetlabel(otherasset, "OTHER")
self.nodes[0].sendtoaddress(self.nodes[2].getnewaddress(), wallet_list[otherasset], "", "", False, "OTHER")
Expand Down

0 comments on commit 2c06858

Please sign in to comment.