Skip to content

Commit

Permalink
Namecoin: Fix get_utxos name filtering for new PartialTxInput
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 6, 2020
1 parent 8c52d4b commit 3447ff2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions electrum_nmc/electrum/address_synchronizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,8 @@ def get_utxos(self, domain=None, *, excluded_addresses=None,
and utxo.block_height + COINBASE_MATURITY > mempool_height):
continue
if not include_names:
txid = utxo['prevout_hash']
vout = utxo['prevout_n']
txid = utxo.prevout.txid
vout = utxo.prevout.out_idx
name_op = self.db.transactions[txid].outputs()[vout].name_op
if name_op is not None:
continue
Expand All @@ -837,16 +837,16 @@ def get_utxos(self, domain=None, *, excluded_addresses=None,
# name_firstupdate syntax (where only a txid is specified, not
# a txid+vout) we don't do that right now.
if only_uno_txids is not None:
txid = utxo['prevout_hash']
vout = utxo['prevout_n']
txid = utxo.prevout.txid
vout = utxo.prevout.out_idx
name_op = self.db.transactions[txid].outputs()[vout].name_op
if name_op is None:
continue
if txid not in only_uno_txids:
continue
if only_uno_identifiers is not None:
txid = utxo['prevout_hash']
vout = utxo['prevout_n']
txid = utxo.prevout.txid
vout = utxo.prevout.out_idx
name_op = self.db.transactions[txid].outputs()[vout].name_op
if name_op is None:
continue
Expand Down

0 comments on commit 3447ff2

Please sign in to comment.