bug in think
authorforrest <forrest@470744a7-cac9-478e-843e-5ec1b25c69e8>
Thu, 14 Jul 2011 14:40:04 +0000 (14:40 +0000)
committerforrest <forrest@470744a7-cac9-478e-843e-5ec1b25c69e8>
Thu, 14 Jul 2011 14:40:04 +0000 (14:40 +0000)
git-svn-id: svn://forre.st/p2pool@1389 470744a7-cac9-478e-843e-5ec1b25c69e8

p2pool/data.py

index b79f4c2..507db67 100644 (file)
@@ -346,7 +346,7 @@ class OkayTracker(bitcoin_data.Tracker):
                 desired.add((self.shares[random.choice(list(self.reverse_shares[last]))].peer, last))
         
         # try to get at least CHAIN_LENGTH height for each verified head, requesting parents if needed
-        for head in self.verified.heads:
+        for head in list(self.verified.heads):
             head_height, last_hash = self.verified.get_height_and_last(head)
             last_height, last_last_hash = self.get_height_and_last(last_hash)
             # XXX review boundary conditions