diff --git a/onionr/communicator.py b/onionr/communicator.py index 697f59f0..ec4b5e7b 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -95,9 +95,9 @@ class OnionrCommunicate: else: logger.debug('Fetching hash from ' + i + ', ' + lastDB + ' last known') currentDB = self.performGet('getDBHash', i) - logger.debug('Fetching hash from ' + i + ' - ' + currentDB + ' current hash.') if currentDB != False: if lastDB != currentDB: + logger.debug('Fetching hash from ' + i + ' - ' + currentDB + ' current hash.') blocks += self.performGet('getBlockHashes', i) if currentDB != lastDB: if self._utils.validateHash(currentDB): diff --git a/onionr/core.py b/onionr/core.py index bfd42d0e..0bb26919 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -337,5 +337,5 @@ class Core: execute = 'SELECT hash FROM hashes;' for row in c.execute(execute): for i in row: - retData += i + retData += i + "\n" return retData