Skip to content

Commit

Permalink
Namecoin: Fix type mismatch in firstupdate search
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyRand committed Feb 17, 2020
1 parent 62822eb commit b4252a9
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,7 +301,7 @@ 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.txid == tx.txid():
if addr_tx_input.prevout.txid.hex() == 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
Expand Down Expand Up @@ -342,7 +342,7 @@ def get_queued_firstupdate_from_new(wallet, txid, idx):
# 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.txid == txid:
if addr_tx_input.prevout.txid.hex() == 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
Expand Down

0 comments on commit b4252a9

Please sign in to comment.