moved processblocks to communicator and fixed bool error in validatehash
This commit is contained in:
parent
63b4c88d06
commit
cd82903db1
@ -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:
|
if retVal == False or retVal:
|
||||||
return False
|
return False
|
||||||
if len(data) != length:
|
if len(data) != length:
|
||||||
retVal = False
|
retVal = False
|
||||||
|
Loading…
Reference in New Issue
Block a user