fxied validateHash
This commit is contained in:
parent
d1faea2519
commit
c6ad487c79
@ -99,7 +99,7 @@ class OnionrUtils:
|
|||||||
def validateHash(self, data, length=64):
|
def validateHash(self, data, length=64):
|
||||||
'''Validate if a string is a valid hex formatted hash'''
|
'''Validate if a string is a valid hex formatted hash'''
|
||||||
retVal = True
|
retVal = True
|
||||||
if retVal == False or retVal == True:
|
if data == False or data == True:
|
||||||
return False
|
return False
|
||||||
data = data.strip()
|
data = data.strip()
|
||||||
if len(data) != length:
|
if len(data) != length:
|
||||||
|
Loading…
Reference in New Issue
Block a user