From cd82903db1bd42e29a78399e96f6377be6ac7c52 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 28 Jan 2018 16:02:29 -0600 Subject: [PATCH] moved processblocks to communicator and fixed bool error in validatehash --- onionr/onionrutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionr/onionrutils.py b/onionr/onionrutils.py index 14ddca4b..95b7d7ad 100644 --- a/onionr/onionrutils.py +++ b/onionr/onionrutils.py @@ -99,7 +99,7 @@ class OnionrUtils: def validateHash(self, data, length=64): '''Validate if a string is a valid hex formatted hash''' retVal = True - if retVal == False: + if retVal == False or retVal: return False if len(data) != length: retVal = False