Skip to content

Commit

Permalink
Namecoin: Use TxOutpoint in get_default_name_tx_label
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 10, 2020
1 parent a3b0233 commit ef3632e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions electrum_nmc/electrum/names.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ def get_default_name_tx_label(wallet, tx):
# Look at all the candidate's inputs to make sure it's
# actually spending the NAME_NEW
for addr_tx_input in addr_tx.inputs():
if addr_tx_input['prevout_hash'] == tx.txid():
if addr_tx_input['prevout_n'] == idx:
if addr_tx_input.prevout.txid == tx.txid():
if addr_tx_input.prevout.out_idx == idx:
# We've confirmed that it spends the NAME_NEW.
# Look at the outputs to find the
# NAME_FIRSTUPDATE.
Expand Down

0 comments on commit ef3632e

Please sign in to comment.