From c50a460395ee1d59fe1cd8a7fa3a99b85437e763 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sun, 10 Sep 2017 16:28:06 +0200 Subject: [PATCH] fixes #2858 --- lib/transaction.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/transaction.py b/lib/transaction.py index fc3ac6275..39a45a37f 100644 --- a/lib/transaction.py +++ b/lib/transaction.py @@ -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