git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
aee3918
)
deserialize: catch exception raised by coinbase transactions
author
ecdsa
<ecdsa@github>
Mon, 25 Mar 2013 01:52:59 +0000 (
02:52
+0100)
committer
ecdsa
<ecdsa@github>
Mon, 25 Mar 2013 01:52:59 +0000 (
02:52
+0100)
lib/deserialize.py
patch
|
blob
|
history
diff --git
a/lib/deserialize.py
b/lib/deserialize.py
index
96972ce
..
0dd0a51
100644
(file)
--- a/
lib/deserialize.py
+++ b/
lib/deserialize.py
@@
-323,7
+323,11
@@
def match_decoded(decoded, to_match):
return True
def get_address_from_input_script(bytes):
- decoded = [ x for x in script_GetOp(bytes) ]
+ try:
+ decoded = [ x for x in script_GetOp(bytes) ]
+ except:
+ print_error("cannot find address in input script", bytes.encode('hex'))
+ return [], [], "(None)"
# non-generated TxIn transactions push a signature
# (seventy-something bytes) and then their public key