From c6ad487c798d0f155cdedab6f64501b1e85a498d Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 28 Jan 2018 16:38:10 -0600 Subject: [PATCH] fxied validateHash --- onionr/onionrutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionr/onionrutils.py b/onionr/onionrutils.py index 2d9b28a8..1f0190f1 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 or retVal == True: + if data == False or data == True: return False data = data.strip() if len(data) != length: