fix: use deserialized tx outputs in choose_tx_inputs
This commit is contained in:
parent
03d36d91e2
commit
9cfb73365b
|
@ -484,7 +484,7 @@ class Wallet:
|
||||||
if h == ['*']: continue
|
if h == ['*']: continue
|
||||||
for tx_hash, tx_height in h:
|
for tx_hash, tx_height in h:
|
||||||
tx = self.transactions.get(tx_hash)
|
tx = self.transactions.get(tx_hash)
|
||||||
for output in tx.get('outputs'):
|
for output in tx.d.get('outputs'):
|
||||||
if output.get('address') != addr: continue
|
if output.get('address') != addr: continue
|
||||||
key = tx_hash + ":%d" % output.get('index')
|
key = tx_hash + ":%d" % output.get('index')
|
||||||
if key in self.spent_outputs: continue
|
if key in self.spent_outputs: continue
|
||||||
|
@ -497,7 +497,7 @@ class Wallet:
|
||||||
if h == ['*']: continue
|
if h == ['*']: continue
|
||||||
for tx_hash, tx_height in h:
|
for tx_hash, tx_height in h:
|
||||||
tx = self.transactions.get(tx_hash)
|
tx = self.transactions.get(tx_hash)
|
||||||
for output in tx.get('outputs'):
|
for output in tx.d.get('outputs'):
|
||||||
if output.get('address') != addr: continue
|
if output.get('address') != addr: continue
|
||||||
key = tx_hash + ":%d" % output.get('index')
|
key = tx_hash + ":%d" % output.get('index')
|
||||||
if key in self.spent_outputs: continue
|
if key in self.spent_outputs: continue
|
||||||
|
|
Loading…
Reference in New Issue