Merge branch 'crypto' of https://github.com/beardog108/Onionr into crypto
This commit is contained in:
commit
a056c7a7f4
@ -181,7 +181,7 @@ class OnionrCommunicate:
|
|||||||
continue
|
continue
|
||||||
if self._utils.hasBlock(i):
|
if self._utils.hasBlock(i):
|
||||||
continue
|
continue
|
||||||
logger.debug('Exchanged block (blockList): ' + i)
|
#logger.debug('Exchanged block (blockList): ' + i)
|
||||||
if not self._utils.validateHash(i):
|
if not self._utils.validateHash(i):
|
||||||
# skip hash if it isn't valid
|
# skip hash if it isn't valid
|
||||||
logger.warn('Hash ' + i + ' is not valid')
|
logger.warn('Hash ' + i + ' is not valid')
|
||||||
@ -230,7 +230,7 @@ class OnionrCommunicate:
|
|||||||
if len(data) < 120:
|
if len(data) < 120:
|
||||||
logger.debug('Block text:\n' + data)
|
logger.debug('Block text:\n' + data)
|
||||||
else:
|
else:
|
||||||
logger.warn("Failed to validate " + hash)
|
logger.warn("Failed to validate " + hash + " " + " hash calculated was " + digest)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -110,7 +110,6 @@ class OnionrUtils:
|
|||||||
if not adder in self._core.listAdders(randomOrder=False) and adder.strip() != self.getMyAddress():
|
if not adder in self._core.listAdders(randomOrder=False) and adder.strip() != self.getMyAddress():
|
||||||
if self._core.addAddress(adder):
|
if self._core.addAddress(adder):
|
||||||
logger.info('Added ' + adder + ' to db.', timestamp=True)
|
logger.info('Added ' + adder + ' to db.', timestamp=True)
|
||||||
input()
|
|
||||||
retVal = True
|
retVal = True
|
||||||
else:
|
else:
|
||||||
logger.debug(adder + " is either our address or already in our DB")
|
logger.debug(adder + " is either our address or already in our DB")
|
||||||
|
Loading…
Reference in New Issue
Block a user