From a38eb667ef229574b5af276dd77c942c07f9a0b6 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 18 May 2018 23:06:22 -0500 Subject: [PATCH] increased allowed pow id size --- onionr/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/core.py b/onionr/core.py index d2ab303a..502ea8f0 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -83,8 +83,8 @@ class Core: # This function simply adds a peer to the DB if not self._utils.validatePubKey(peerID): return False - if sys.getsizeof(powID) > 60: - logger.warn("POW token for pubkey base64 representation exceeded 60 bytes") + if sys.getsizeof(powID) > 120: + logger.warn("POW token for pubkey base64 representation exceeded 120 bytes, is " + str(sys.getsizeof(powID))) return False conn = sqlite3.connect(self.peerDB)