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