From df494a7906642089384e85e0c64bf2eb55e07adc Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sat, 27 Jan 2018 20:03:44 -0600 Subject: [PATCH] added communicator hash sync debug messages --- onionr/communicator.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/onionr/communicator.py b/onionr/communicator.py index 0a6b9545..20b360b5 100755 --- a/onionr/communicator.py +++ b/onionr/communicator.py @@ -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)