Add self peers with rating 1
This commit is contained in:
parent
92c0196887
commit
a7a634be1b
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user