We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8a47e commit 81ca8a3Copy full SHA for 81ca8a3
bitcoin/core/script.py
@@ -680,7 +680,7 @@ def is_p2sh(self):
680
def is_witness_scriptpubkey(self):
681
"""Returns true if this is a scriptpubkey signaling segregated witness
682
data. """
683
- return 3 <= len(self) <= 42 and CScriptOp(struct.unpack('<b',self[0])[0]).is_small_int()
+ return 3 <= len(self) <= 42 and CScriptOp(struct.unpack('<b',self[0:1])[0]).is_small_int()
684
685
def witness_version(self):
686
"""Returns the witness version on [0,16]. """
0 commit comments