mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-18 23:38:18 +00:00
Client.get_permuted_peers: use self.nodeid now that it's fixed
This commit is contained in:
@ -161,10 +161,9 @@ class Client(node.Node, Referenceable):
|
|||||||
@return: list of (permuted-peerid, peerid, connection,)
|
@return: list of (permuted-peerid, peerid, connection,)
|
||||||
"""
|
"""
|
||||||
results = []
|
results = []
|
||||||
myid = b32decode(self.tub.tubID.upper())
|
|
||||||
for peerid, connection in self.introducer_client.get_all_peers():
|
for peerid, connection in self.introducer_client.get_all_peers():
|
||||||
assert isinstance(peerid, str)
|
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")
|
self.log("get_permuted_peers: removing myself from the list")
|
||||||
continue
|
continue
|
||||||
permuted = bytes_to_long(sha.new(key + peerid).digest())
|
permuted = bytes_to_long(sha.new(key + peerid).digest())
|
||||||
|
Reference in New Issue
Block a user