do not raise exception on strange input scripts
This commit is contained in:
@@ -356,7 +356,8 @@ def get_address_from_input_script(bytes):
|
|||||||
pubkeys = [ dec2[1][1].encode('hex'), dec2[2][1].encode('hex'), dec2[3][1].encode('hex') ]
|
pubkeys = [ dec2[1][1].encode('hex'), dec2[2][1].encode('hex'), dec2[3][1].encode('hex') ]
|
||||||
return pubkeys, signatures, hash_160_to_bc_address(hash_160(redeemScript), 5)
|
return pubkeys, signatures, hash_160_to_bc_address(hash_160(redeemScript), 5)
|
||||||
|
|
||||||
raise BaseException("no match for scriptsig")
|
print_error("cannot find address in input script", bytes.encode('hex'))
|
||||||
|
return "(None)"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user