From da6729adc97a18c39300af7265194b6283d3d370 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 27 Jan 2018 20:10:17 -0600 Subject: [PATCH] fixed core not appending new line to block list --- onionr/communicator.py | 2 +- onionr/core.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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