fixed core not appending new line to block list
parent
7a3eaf63df
commit
da6729adc9
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue