removed debug statements

This commit is contained in:
Kevin Froman 2018-08-29 23:49:28 -05:00
parent 6ecb1fa75d
commit 716fb7335c
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
3 changed files with 2 additions and 4 deletions

View File

@ -90,7 +90,7 @@ def peerCleanup(coreInst):
if PeerProfiles(address, coreInst).score < minScore:
coreInst.removeAddress(address)
try:
if (coreInst._utils.getEpoch() - coreInst.getPeerInfo(address, 4)) >= 600:
if (coreInst._utils.getEpoch() - coreInst.getPeerInfo(address, 'dateSeen')) >= 600:
expireTime = 600
else:
expireTime = 86400

View File

@ -71,6 +71,5 @@ class OnionrUser:
if newName.isalnum():
logger.info('%s is now using the name %s.' % (self.publicKey, self._core._utils.escapeAnsi(newName)))
self._core.setPeerInfo(self.publicKey, 'name', newName)
print("DEBUG PLS")
else:
raise onionrexceptions.InvalidPubkey

View File

@ -88,13 +88,12 @@ class OnionrMail:
senderKey = senderKey.decode()
except AttributeError:
pass
print("DEBUG:", senderKey)
senderDisplay = onionrusers.OnionrUser(self.myCore, senderKey).getName()
if senderDisplay == 'anonymous':
senderDisplay = senderKey
blockDate = pmBlocks[blockHash].getDate().strftime("%m/%d %H:%M")
print('%s. %s - %s: %s' % (blockCount, blockDate, senderDisplay, blockHash))
print('%s. %s - %s: %s' % (blockCount, blockDate, senderDisplay[:12], blockHash))
try:
choice = logger.readline('Enter a block number, -r to refresh, or -q to stop: ').strip().lower()