Skip to content

Commit

Permalink
Have find_vout_for_address only get non-confidential address when usi…
Browse files Browse the repository at this point in the history
…ng elements chain
  • Loading branch information
achow101 committed Oct 15, 2019
1 parent cefe407 commit ac6f052
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/functional/test_framework/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,9 @@ def find_vout_for_address(node, txid, addr):
given address. Raises runtime error exception if not found.
"""
tx = node.getrawtransaction(txid, True)
unblind_addr = node.validateaddress(addr)["unconfidential"]
unblind_addr = addr
if node.getblockchaininfo()['chain'] == 'elementsregtest':
unblind_addr = node.validateaddress(addr)["unconfidential"]
for i in range(len(tx["vout"])):
if tx["vout"][i]["scriptPubKey"]["type"] == "fee":
continue
Expand Down

0 comments on commit ac6f052

Please sign in to comment.