deserialize: catch exception raised by coinbase transactions
This commit is contained in:
parent
aee3918c36
commit
8d339bfc1a
|
@ -323,7 +323,11 @@ def match_decoded(decoded, to_match):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def get_address_from_input_script(bytes):
|
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
|
# non-generated TxIn transactions push a signature
|
||||||
# (seventy-something bytes) and then their public key
|
# (seventy-something bytes) and then their public key
|
||||||
|
|
Loading…
Reference in New Issue