From a7a634be1bee0d67831d36d60b2240e3ee1f32ac Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Fri, 2 Aug 2019 17:56:40 +0300 Subject: [PATCH] Add self peers with rating 1 --- src/knownnodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/knownnodes.py b/src/knownnodes.py index 5d1c003d..f4e00b90 100644 --- a/src/knownnodes.py +++ b/src/knownnodes.py @@ -98,7 +98,7 @@ def saveKnownNodes(dirName=None): def addKnownNode(stream, peer, lastseen=None, is_self=False): knownNodes[stream][peer] = { "lastseen": lastseen or time.time(), - "rating": 0, + "rating": 1 if is_self else 0, "self": is_self, }