added communicator hash sync debug messages

master
Kevin Froman 2018-01-27 20:03:44 -06:00
parent abcdf58b1f
commit df494a7906
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
1 changed files with 5 additions and 0 deletions

View File

@ -90,7 +90,12 @@ class OnionrCommunicate:
blocks = ''
for i in peerList:
lastDB = self._core.getPeerInfo(i, 'blockDBHash')
if lastDB == None:
logger.debug('Fetching hash from ' + i + ' No previous known.')
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:
blocks += self.performGet('getBlockHashes', i)