Esempio n. 1
0
def _unlag_fetcher(server, worker, password):
    """
    Actually fetches and unlags the server
    """
    try:
        url = btcnet_info.get_pool(server)['mine.address']
        work = Network.send_work(url, worker, password)
        if work:
            bitHopper.LaggingLogic.lagged.remove((server, worker, password))
            return
    except:
        logging.debug(traceback.format_exc())
        pass
Esempio n. 2
0
def _unlag( server, worker, password):
    """
    Function that checks for a server responding again
    """
    sleep_time = 1
    while True:
        try:
            url = btcnet_info.get_pool(server)['mine.address']
            work = Network.send_work(url, worker, password)
            if work:
                lagged.remove((server, worker, password))
                return
        except:
            pass
                
        gevent.sleep(60 * sleep_time)
        sleep_time = sleep_time+1 if sleep_time < 10 else 10