Browse Source

Don't put addresses into queue

- attempt to fix #1598
- seems to work
- addresses won't be uploaded/announced anymore other than after connecting,
  Later I need to find out how to announce them without causing problems, but
  for the time disabling this seems an acceptable drawback
v0.6
Peter Šurda 2 years ago
parent
commit
11bec55be5
Signed by untrusted user: PeterSurda GPG Key ID: 0C5F50C0B5F37D87
  1. 7
      src/network/bmproto.py

7
src/network/bmproto.py

@ -31,7 +31,7 @@ from network.dandelion import Dandelion
from network.proxy import ProxyError
from node import Node, Peer
from objectracker import ObjectTracker, missingObjects
from queues import addrQueue, invQueue, objectProcessorQueue, portCheckerQueue
from queues import invQueue, objectProcessorQueue, portCheckerQueue
from randomtrackingdict import RandomTrackingDict
logger = logging.getLogger('default')
@ -466,8 +466,9 @@ class BMProto(AdvancedDispatcher, ObjectTracker):
}
# since we don't track peers outside of knownnodes,
# only spread if in knownnodes to prevent flood
addrQueue.put((stream, peer, seenTime,
self.destination))
# DISABLED TO WORKAROUND FLOOD/LEAK
# addrQueue.put((stream, peer, seenTime,
# self.destination))
return True
def bm_command_portcheck(self):

Loading…
Cancel
Save