mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
Client.get_permuted_peers: use self.nodeid now that it's fixed
This commit is contained in:
parent
53349c571f
commit
1ac83637a6
@ -161,10 +161,9 @@ class Client(node.Node, Referenceable):
|
||||
@return: list of (permuted-peerid, peerid, connection,)
|
||||
"""
|
||||
results = []
|
||||
myid = b32decode(self.tub.tubID.upper())
|
||||
for peerid, connection in self.introducer_client.get_all_peers():
|
||||
assert isinstance(peerid, str)
|
||||
if not include_myself and peerid == myid:
|
||||
if not include_myself and peerid == self.nodeid:
|
||||
self.log("get_permuted_peers: removing myself from the list")
|
||||
continue
|
||||
permuted = bytes_to_long(sha.new(key + peerid).digest())
|
||||
|
Loading…
x
Reference in New Issue
Block a user