From 5cd34672d7085ca4d55693a1008101c02ceeb7e9 Mon Sep 17 00:00:00 2001 From: Surya Bakshi Date: Sun, 1 Jan 2017 18:34:21 -0600 Subject: [PATCH] fixed issue in is_witness_scriptpubkey where self[0] is interpretted as str instead of the necessary int --- bitcoin/core/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/core/script.py b/bitcoin/core/script.py index b5ffdfa..baca69b 100644 --- a/bitcoin/core/script.py +++ b/bitcoin/core/script.py @@ -680,7 +680,7 @@ def is_p2sh(self): def is_witness_scriptpubkey(self): """Returns true if this is a scriptpubkey signaling segregated witness data. """ - return 3 <= len(self) <= 42 and CScriptOp(self[0]).is_small_int() + return 3 <= len(self) <= 42 and CScriptOp(struct.unpack('