Fixed unreachable code issue
This commit is contained in:
parent
18c19cd618
commit
611eb9db87
|
@ -51,7 +51,6 @@ def decodeBase58(string, alphabet=ALPHABET):
|
|||
"""
|
||||
base = len(alphabet)
|
||||
num = 0
|
||||
|
||||
try:
|
||||
for char in string:
|
||||
num *= base
|
||||
|
@ -253,12 +252,14 @@ def decodeAddress(address):
|
|||
embeddedRipeData = data[bytesUsedByVersionNumber +
|
||||
bytesUsedByStreamNumber:-4]
|
||||
if len(embeddedRipeData) == 19:
|
||||
return status, addressVersionNumber, streamNumber, '\x00' + embeddedRipeData
|
||||
return status, addressVersionNumber, streamNumber, \
|
||||
'\x00', embeddedRipeData
|
||||
elif len(embeddedRipeData) == 20:
|
||||
return status, addressVersionNumber, streamNumber, embeddedRipeData
|
||||
return status, addressVersionNumber, streamNumber, \
|
||||
embeddedRipeData
|
||||
elif len(embeddedRipeData) == 18:
|
||||
return status, addressVersionNumber, streamNumber, '\x00\x00'
|
||||
+ embeddedRipeData
|
||||
return status, addressVersionNumber, streamNumber, \
|
||||
'\x00\x00', embeddedRipeData
|
||||
elif len(embeddedRipeData) < 18:
|
||||
return 'ripetooshort', 0, 0, ""
|
||||
elif len(embeddedRipeData) > 20:
|
||||
|
|
|
@ -799,7 +799,7 @@ class singleWorker(threading.Thread, StoppableThread):
|
|||
self.requestPubKey(toaddress)
|
||||
continue
|
||||
# on with the next msg on which we can do some work
|
||||
# At this point we know that we have the necessary
|
||||
# At this point we know that we have the necessary
|
||||
# pubkey in the pubkeys table.
|
||||
|
||||
TTL *= 2**retryNumber
|
||||
|
|
Reference in New Issue
Block a user