- if knownNodes grows to 20000, instead of ignoring new nodes, forget
the 1000 oldest ones
- drop connection after sendaddr if too many connections, even if it's
an outbound one
- if maximum total connections are lower than maximum outbound
connections, active bootstrap provider mode
- in this mode, check all addresses received before announcing them
- so basically it only annouces those addresses it successfully
connected to
iflen(knownnodes.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.
if(timeLastReceivedMessageFromThisNode<timeSomeoneElseReceivedMessageFromThisNode)and(timeSomeoneElseReceivedMessageFromThisNode<int(time.time())+900):# 900 seconds for wiggle-room in case other nodes' clocks aren't quite right.
@ -822,7 +835,12 @@ class receiveDataThread(threading.Thread):