removed debug statements
This commit is contained in:
parent
6ecb1fa75d
commit
716fb7335c
@ -90,7 +90,7 @@ def peerCleanup(coreInst):
|
|||||||
if PeerProfiles(address, coreInst).score < minScore:
|
if PeerProfiles(address, coreInst).score < minScore:
|
||||||
coreInst.removeAddress(address)
|
coreInst.removeAddress(address)
|
||||||
try:
|
try:
|
||||||
if (coreInst._utils.getEpoch() - coreInst.getPeerInfo(address, 4)) >= 600:
|
if (coreInst._utils.getEpoch() - coreInst.getPeerInfo(address, 'dateSeen')) >= 600:
|
||||||
expireTime = 600
|
expireTime = 600
|
||||||
else:
|
else:
|
||||||
expireTime = 86400
|
expireTime = 86400
|
||||||
|
@ -71,6 +71,5 @@ class OnionrUser:
|
|||||||
if newName.isalnum():
|
if newName.isalnum():
|
||||||
logger.info('%s is now using the name %s.' % (self.publicKey, self._core._utils.escapeAnsi(newName)))
|
logger.info('%s is now using the name %s.' % (self.publicKey, self._core._utils.escapeAnsi(newName)))
|
||||||
self._core.setPeerInfo(self.publicKey, 'name', newName)
|
self._core.setPeerInfo(self.publicKey, 'name', newName)
|
||||||
print("DEBUG PLS")
|
|
||||||
else:
|
else:
|
||||||
raise onionrexceptions.InvalidPubkey
|
raise onionrexceptions.InvalidPubkey
|
@ -88,13 +88,12 @@ class OnionrMail:
|
|||||||
senderKey = senderKey.decode()
|
senderKey = senderKey.decode()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
print("DEBUG:", senderKey)
|
|
||||||
senderDisplay = onionrusers.OnionrUser(self.myCore, senderKey).getName()
|
senderDisplay = onionrusers.OnionrUser(self.myCore, senderKey).getName()
|
||||||
if senderDisplay == 'anonymous':
|
if senderDisplay == 'anonymous':
|
||||||
senderDisplay = senderKey
|
senderDisplay = senderKey
|
||||||
|
|
||||||
blockDate = pmBlocks[blockHash].getDate().strftime("%m/%d %H:%M")
|
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:
|
try:
|
||||||
choice = logger.readline('Enter a block number, -r to refresh, or -q to stop: ').strip().lower()
|
choice = logger.readline('Enter a block number, -r to refresh, or -q to stop: ').strip().lower()
|
||||||
|
Loading…
Reference in New Issue
Block a user