fixed core not appending new line to block list

master
Kevin Froman 2018-01-27 20:10:17 -06:00
parent 7a3eaf63df
commit da6729adc9
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
2 changed files with 2 additions and 2 deletions

View File

@ -95,9 +95,9 @@ class OnionrCommunicate:
else: else:
logger.debug('Fetching hash from ' + i + ', ' + lastDB + ' last known') logger.debug('Fetching hash from ' + i + ', ' + lastDB + ' last known')
currentDB = self.performGet('getDBHash', i) currentDB = self.performGet('getDBHash', i)
logger.debug('Fetching hash from ' + i + ' - ' + currentDB + ' current hash.')
if currentDB != False: if currentDB != False:
if lastDB != currentDB: if lastDB != currentDB:
logger.debug('Fetching hash from ' + i + ' - ' + currentDB + ' current hash.')
blocks += self.performGet('getBlockHashes', i) blocks += self.performGet('getBlockHashes', i)
if currentDB != lastDB: if currentDB != lastDB:
if self._utils.validateHash(currentDB): if self._utils.validateHash(currentDB):

View File

@ -337,5 +337,5 @@ class Core:
execute = 'SELECT hash FROM hashes;' execute = 'SELECT hash FROM hashes;'
for row in c.execute(execute): for row in c.execute(execute):
for i in row: for i in row:
retData += i retData += i + "\n"
return retData return retData