fixed typo in irc announcer
authorForrest Voight <forrest@forre.st>
Mon, 30 Jan 2012 14:55:22 +0000 (14:55 +0000)
committerForrest Voight <forrest@forre.st>
Mon, 30 Jan 2012 14:56:51 +0000 (14:56 +0000)
p2pool/main.py

index f65c4ca..9566cef 100644 (file)
@@ -784,7 +784,7 @@ def main(args, net, datadir_path):
                 def _new_share(self, share):
                     if share.pow_hash <= share.header['bits'].target and share.header_hash not in self.announced_hashes:
                         self.announced_hashes.add(share.header_hash)
-                        self.say('#p2pool', '\x032,1iBLOCK FOUND by %s! http://blockexplorer.com/block/%064x' % (bitcoin_data.script2_to_human(share.new_script, net), share.header_hash))
+                        self.say('#p2pool', '\x032,1BLOCK FOUND by %s! http://blockexplorer.com/block/%064x' % (bitcoin_data.script2_to_human(share.new_script, net.PARENT), share.header_hash))
                 def connectionLost(self, reason):
                     tracker.verified.added.unwatch(self.watch_id)
             class IRCClientFactory(protocol.ReconnectingClientFactory):