logger.debug('We already have '+str(totalNumberOfobjectsThatWeHaveYetToGetFromAllPeers)+' items yet to retrieve from peers and over 1000 from this node in particular. Ignoring this inv message.')
logger.info('inv message lists %s objects. Of those %s are new to me. It took %s seconds to figure that out.',numberOfItemsInInv,len(objectsNewToMe),time.time()-startTime)
logger.debug('We already have '+str(totalNumberOfobjectsThatWeHaveYetToGetFromAllPeers)+' items yet to retrieve from peers and over '+str(len(self.objectsThatWeHaveYetToGetFromThisPeer)),' from this node in particular. Ignoring the rest of this inv message.')
break
self.someObjectsOfWhichThisRemoteNodeIsAlreadyAware[item]=0# helps us keep from sending inv messages to peers that already know about the objects listed therein
@ -593,7 +593,7 @@ class receiveDataThread(threading.Thread):
ifrecaddrStreamnotinshared.knownNodes:# knownNodes is a dictionary of dictionaries with one outer dictionary for each stream. If the outer stream dictionary doesn't exist yet then we must make it.
iflen(shared.knownNodes[recaddrStream])<20000andtimeSomeoneElseReceivedMessageFromThisNode>(int(time.time())-10800)andtimeSomeoneElseReceivedMessageFromThisNode<(int(time.time())+10800):# If we have more than 20000 nodes in our list already then just forget about adding more. Also, make sure that the time that someone else received a message from this node is within three hours from now.
withshared.knownNodesLock:
@ -637,7 +637,7 @@ class receiveDataThread(threading.Thread):
# if current connection is over a proxy, sent our own onion address at a random position