From 1ac83637a6b3eee6950bd727c44f07379e6c8670 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@lothar.com>
Date: Sun, 12 Aug 2007 16:24:51 -0700
Subject: [PATCH] Client.get_permuted_peers: use self.nodeid now that it's
 fixed

---
 src/allmydata/client.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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())
-- 
2.45.2