Skip to content

Commit

Permalink
Fixed bug when trying to claim transaction with non-address outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ymgve committed May 26, 2018
1 parent 7ea7ac4 commit 2a0ae4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion claimer.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def get_tx_details_from_blockchaininfo(txid, addr, hardforkheight):

found = None
for outinfo in txinfo["out"]:
if outinfo["addr"] == addr:
if "addr" in outinfo and outinfo["addr"] == addr:
txindex = outinfo["n"]
script = outinfo["script"].decode("hex")
satoshis = outinfo["value"]
Expand Down

0 comments on commit 2a0ae4d

Please sign in to comment.