Fixes https://github.com/slush0/stratum/issues/4
[stratum-mining.git] / mining / service.py
index ff86d96..30451d9 100644 (file)
@@ -46,7 +46,7 @@ class MiningService(GenericService):
                 del session['authorized'][worker_name]
             return False
         
-    def subscribe(self):
+    def subscribe(self, *args):
         '''Subscribe for receiving mining jobs. This will
         return subscription details, extranonce1_hex and extranonce2_size'''
         
@@ -138,4 +138,4 @@ class MiningService(GenericService):
                      ('extranonce2', 'string', 'hex-encoded big-endian extranonce2, length depends on extranonce2_size from mining.notify.'),
                      ('ntime', 'string', 'UNIX timestamp (32bit integer, big-endian, hex-encoded), must be >= ntime provided by mining,notify and <= current time'),
                      ('nonce', 'string', '32bit integer, hex-encoded, big-endian'),]
-        
\ No newline at end of file
+