git://git.novaco.in
/
electrum-server.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Update deserialize.py
[electrum-server.git]
/
backends
/
bitcoind
/
deserialize.py
diff --git
a/backends/bitcoind/deserialize.py
b/backends/bitcoind/deserialize.py
index
066be33
..
6620583
100644
(file)
--- a/
backends/bitcoind/deserialize.py
+++ b/
backends/bitcoind/deserialize.py
@@
-293,7
+293,7
@@
def script_GetOp(bytes):
vch = None
opcode = ord(bytes[i])
i += 1
- if opcode >= opcodes.OP_SINGLEBYTE_END:
+ if opcode >= opcodes.OP_SINGLEBYTE_END and i < len(bytes):
opcode <<= 8
opcode |= ord(bytes[i])
i += 1