fixed typo
authorForrest Voight <forrest@forre.st>
Tue, 29 Nov 2011 13:34:38 +0000 (08:34 -0500)
committerForrest Voight <forrest@forre.st>
Tue, 29 Nov 2011 13:34:38 +0000 (08:34 -0500)
p2pool/p2p.py

index 49f3d7d..1bb193a 100644 (file)
@@ -233,7 +233,7 @@ class Protocol(bitcoin_p2p.BaseProtocol):
     def handle_share1bs(self, share1bs):
         shares = []
         for share1b in share1bs:
-            if not self.node.net.BITCOIN_POW_FUNC(share1a['header']) <= share1b['header']['target']:
+            if not self.node.net.BITCOIN_POW_FUNC(share1b['header']) <= share1b['header']['target']:
                 print 'Dropping peer %s:%i due to invalid share' % self.addr
                 self.transport.loseConnection()
                 return