From a6dbb1e37e70fffdf84b9932f1a7a9e8c5379dab Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Wed, 22 Feb 2017 16:18:08 +0100 Subject: [PATCH] Less timestamp penalty for inbound connections - was over 2 days, but PyBM will only spread those with more recent than 3 hours. So it's now set to 2 hours --- src/class_receiveDataThread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class_receiveDataThread.py b/src/class_receiveDataThread.py index 64135bc7..3875957e 100644 --- a/src/class_receiveDataThread.py +++ b/src/class_receiveDataThread.py @@ -796,7 +796,7 @@ class receiveDataThread(threading.Thread): for stream in self.remoteStreams: knownnodes.knownNodes[stream][state.Peer(self.peer.host, self.remoteNodeIncomingPort)] = int(time.time()) if not self.initiatedConnection: - knownnodes.knownNodes[stream][state.Peer(self.peer.host, self.remoteNodeIncomingPort)] -= 162000 # penalise inbound, 2 days minus 3 hours + knownnodes.knownNodes[stream][state.Peer(self.peer.host, self.remoteNodeIncomingPort)] -= 7200 # penalise inbound, 2 hours shared.needToWriteKnownNodesToDisk = True self.sendverack()