]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Client.get_permuted_peers: use self.nodeid now that it's fixed
authorBrian Warner <warner@lothar.com>
Sun, 12 Aug 2007 23:24:51 +0000 (16:24 -0700)
committerBrian Warner <warner@lothar.com>
Sun, 12 Aug 2007 23:24:51 +0000 (16:24 -0700)
src/allmydata/client.py

index 949e6dc7b19db81a3bd92641ca2911f6fcb6633a..a0baa8ed3a7d2b6b5a5c331b12c12e1cad87bcc3 100644 (file)
@@ -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())