Skip to content

Commit ac6f052

Browse files
committed
Have find_vout_for_address only get non-confidential address when using elements chain
1 parent cefe407 commit ac6f052

File tree

1 file changed

+3
-1
lines changed
  • test/functional/test_framework

1 file changed

+3
-1
lines changed

test/functional/test_framework/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,9 @@ def find_vout_for_address(node, txid, addr):
598598
given address. Raises runtime error exception if not found.
599599
"""
600600
tx = node.getrawtransaction(txid, True)
601-
unblind_addr = node.validateaddress(addr)["unconfidential"]
601+
unblind_addr = addr
602+
if node.getblockchaininfo()['chain'] == 'elementsregtest':
603+
unblind_addr = node.validateaddress(addr)["unconfidential"]
602604
for i in range(len(tx["vout"])):
603605
if tx["vout"][i]["scriptPubKey"]["type"] == "fee":
604606
continue

0 commit comments

Comments
 (0)