From ac6f052a6d4737b05c808efa1e6ece6236fbb885 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Tue, 15 Oct 2019 15:06:19 -0400 Subject: [PATCH] Have find_vout_for_address only get non-confidential address when using elements chain --- test/functional/test_framework/util.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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