Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/s/t/stratum-mining-proxy-HEAD/mining_libs/stratum_listener.py   stratum-mining-proxy(Download)
        self.connection_ref().on_disconnect.addCallback(self._drop_tail, tail)
 
        subs1 = Pubsub.subscribe(self.connection_ref(), DifficultySubscription())[0]
        subs2 = Pubsub.subscribe(self.connection_ref(), MiningSubscription())[0]            
        defer.returnValue(((subs1, subs2),) + (self.extranonce1+tail, extranonce2_size))

src/s/t/stratum-mining-HEAD/mining/service.py   stratum-mining(Download)
        session['extranonce1'] = extranonce1
        session['difficulty'] = settings.POOL_TARGET  # Following protocol specs, default diff is 1
        return Pubsub.subscribe(self.connection_ref(), MiningSubscription()) + (extranonce1_hex, extranonce2_size)
 
    def submit(self, worker_name, work_id, extranonce2, ntime, nonce):