diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index e5f970900a..6282cf1e76 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -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