fix ip transaction ... has been broken for a while
authorForrest Voight <forrest@forre.st>
Sun, 31 Jul 2011 03:36:37 +0000 (03:36 +0000)
committerForrest Voight <forrest@forre.st>
Sun, 31 Jul 2011 03:41:47 +0000 (03:41 +0000)
p2pool/main.py

index b1ae80a..36df690 100644 (file)
@@ -40,9 +40,9 @@ def getwork(bitcoind):
 def get_payout_script(factory):
     res = yield (yield factory.getProtocol()).check_order(order=bitcoin.p2p.Protocol.null_order)
     if res['reply'] == 'success':
-        my_script = res['script']
+        defer.returnValue(res['script'])
     elif res['reply'] == 'denied':
-        my_script = None
+        defer.returnValue(None)
     else:
         raise ValueError('Unexpected reply: %r' % (res,))