From: Brian Warner Date: Sun, 12 Aug 2007 23:24:51 +0000 (-0700) Subject: Client.get_permuted_peers: use self.nodeid now that it's fixed X-Git-Url: https://git.rkrishnan.org/(%5B%5E?a=commitdiff_plain;h=1ac83637a6b3eee6950bd727c44f07379e6c8670;p=tahoe-lafs%2Ftahoe-lafs.git Client.get_permuted_peers: use self.nodeid now that it's fixed --- diff --git a/src/allmydata/client.py b/src/allmydata/client.py index 949e6dc7..a0baa8ed 100644 --- a/src/allmydata/client.py +++ b/src/allmydata/client.py @@ -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())