mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Have find_vout_for_address only get non-confidential address when using elements chain
This commit is contained in:
parent
cefe40767d
commit
ac6f052a6d
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue