mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 20:35:13 +00:00
fix side effect in get_unspent_coins, causing transactions to be rejected
This commit is contained in:
parent
8d943ff9a2
commit
9db6f0c3b7
1 changed files with 2 additions and 1 deletions
|
@ -1114,7 +1114,8 @@ class Wallet:
|
|||
tx = self.transactions.get(tx_hash)
|
||||
if tx is None: raise Exception("Wallet not synchronized")
|
||||
is_coinbase = tx.inputs[0].get('prevout_hash') == '0'*64
|
||||
for output in tx.d.get('outputs'):
|
||||
for o in tx.d.get('outputs'):
|
||||
output = o.copy()
|
||||
if output.get('address') != addr: continue
|
||||
key = tx_hash + ":%d" % output.get('prevout_n')
|
||||
if key in self.spent_outputs: continue
|
||||
|
|
Loading…
Add table
Reference in a new issue