fixed problem with worker username processing, found by Tril
authorForrest Voight <forrest@forre.st>
Mon, 19 Dec 2011 06:07:12 +0000 (01:07 -0500)
committerForrest Voight <forrest@forre.st>
Mon, 19 Dec 2011 06:07:12 +0000 (01:07 -0500)
p2pool/main.py

index 3e6dc4d..42693ac 100644 (file)
@@ -412,7 +412,7 @@ def main(args, net, datadir_path):
             if user is None:
                 return None
             try:
-                return bitcoin_data.pubkey_hash_to_script2(bitcoin_data.address_to_pubkey_hash(user, net))
+                return bitcoin_data.pubkey_hash_to_script2(bitcoin_data.address_to_pubkey_hash(user, net.PARENT))
             except: # XXX blah
                 return None