Condensing operators and conditionals

This commit is contained in:
Syndicalist 2013-08-07 17:13:58 -04:00
parent 05808c1fdf
commit d8445adcb6

View File

@ -395,7 +395,7 @@ class receiveDataThread(threading.Thread):
self.broadcastinv(self.inventoryHash)
shared.UISignalQueue.put((
'incrementNumberOfBroadcastsProcessed', 'no data'))
shared.broadcastTotals = shared.broadcastTotals + 1 # Used specifically for API
shared.broadcastTotals += 1 # Used specifically for API
self.processbroadcast(
readPosition, data) # When this function returns, we will have either successfully processed this broadcast because we are interested in it, ignored it because we aren't interested in it, or found problem with the broadcast that warranted ignoring it.
@ -763,7 +763,7 @@ class receiveDataThread(threading.Thread):
self.broadcastinv(self.inventoryHash)
shared.UISignalQueue.put((
'incrementNumberOfMessagesProcessed', 'no data'))
shared.messagesTotals = shared.messagesTotals + 1 # Used specifically for API
shared.messagesTotals += 1 # Used specifically for API
self.processmsg(
readPosition, data) # When this function returns, we will have either successfully processed the message bound for us, ignored it because it isn't bound for us, or found problem with the message that warranted ignoring it.
@ -1181,7 +1181,7 @@ class receiveDataThread(threading.Thread):
self.broadcastinv(inventoryHash)
shared.UISignalQueue.put((
'incrementNumberOfPubkeysProcessed', 'no data'))
shared.pubkeysTotals = shared.pubkeysTotals + 1 # Used specifically for API
shared.pubkeysTotals += 1 # Used specifically for API
self.processpubkey(data)
lengthOfTimeWeShouldUseToProcessThisMessage = .2