do not claim hash is invalid when there was no hash

master
Kevin Froman 2018-01-28 20:20:24 -06:00
parent da80723686
commit 8b3a09f5af
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class OnionrCommunicate:
logger.debug('Exchanged block (blockList): ' + i) logger.debug('Exchanged block (blockList): ' + i)
if not self._utils.validateHash(i): if not self._utils.validateHash(i):
# skip hash if it isn't valid # skip hash if it isn't valid
if len(i.strip()) != 0 if len(i.strip()) != 0:
logger.warn('Hash ' + i + ' is not valid') logger.warn('Hash ' + i + ' is not valid')
continue continue
else: else: