fixed core not appending new line to block list

This commit is contained in:
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:
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):

View File

@ -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