mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
workaround inefficiency in add_input_info
This commit is contained in:
parent
0e32638765
commit
63cff71f91
1 changed files with 1 additions and 1 deletions
|
@ -1049,8 +1049,8 @@ class Abstract_Wallet(PrintError):
|
||||||
|
|
||||||
def add_input_info(self, txin):
|
def add_input_info(self, txin):
|
||||||
# Add address for utxo that are in wallet
|
# Add address for utxo that are in wallet
|
||||||
coins = self.get_spendable_coins()
|
|
||||||
if txin.get('scriptSig') == '':
|
if txin.get('scriptSig') == '':
|
||||||
|
coins = self.get_spendable_coins()
|
||||||
for item in coins:
|
for item in coins:
|
||||||
if txin.get('prevout_hash') == item.get('prevout_hash') and txin.get('prevout_n') == item.get('prevout_n'):
|
if txin.get('prevout_hash') == item.get('prevout_hash') and txin.get('prevout_n') == item.get('prevout_n'):
|
||||||
txin['address'] = item.get('address')
|
txin['address'] = item.get('address')
|
||||||
|
|
Loading…
Add table
Reference in a new issue