Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…lockd into develop
  • Loading branch information
robby-dermody committed Jan 3, 2015
2 parents e2243f3 + 918fed2 commit 90cc76e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,10 @@ def scriptpubkey_to_canonical_address(scriptpubkey):
signatures_required = asm[0]
signatures_possible = len(asm) - 3
return "_".join([str(signatures_required)] + sorted(scriptpubkey['addresses']) + [str(signatures_possible)])
else:
elif 'addresses' in scriptpubkey:
return scriptpubkey['addresses'][0]
else:
return None


def get_unspent_txouts(source, return_confirmed=False):
Expand Down

0 comments on commit 90cc76e

Please sign in to comment.