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