This commit is contained in:
SomberNight 2017-09-10 16:28:06 +02:00
parent afa1a4d22a
commit c50a460395
1 changed files with 2 additions and 0 deletions

View File

@ -591,6 +591,8 @@ class Transaction:
return addr
elif output_type == TYPE_ADDRESS:
return bitcoin.address_to_script(addr)
elif output_type == TYPE_PUBKEY:
return addr
else:
raise TypeError('Unknown output type')
return script