Beispiel #1
0
def miner():

    #Check if this is a form submission
    handle_miner_post(flask.request.form)

    #Get a list of currently configured miners
    miners = bitHopper.Configuration.Miners.get_miners()
    return flask.render_template('miner.html', miners=miners)
Beispiel #2
0
def miner():

    #Check if this is a form submission
    handle_miner_post(flask.request.form)
    
    #Get a list of currently configured miners
    miners = bitHopper.Configuration.Miners.get_miners()    
    return flask.render_template('miner.html', miners=miners) 
Beispiel #3
0
def pool():

    handle_worker_post(flask.request.form)

    pools = bitHopper.Tracking.Tracking.build_dict()
        
    percentage = {}
    priority = {}
    for pool in pools:
        priority[pool] = bitHopper.Configuration.Pools.get_priority(pool)
        percentage[pool] = bitHopper.Configuration.Pools.get_percentage(pool)
        
    return flask.render_template('pool.html', pools = pools, percentage=percentage, priority=priority)
Beispiel #4
0
def worker():

    #Check if this is a form submission
    handle_worker_post(flask.request.form)
    
    #Get a list of currently configured workers
    pools_workers = {}
    for pool in btcnet_info.get_pools():
        if pool.name is None:
            logging.debug('Ignoring a Pool. If no pools apear on /worker please update your version of btcnet_info')
            continue
        pools_workers[pool.name] = bitHopper.Configuration.Workers.get_worker_from(pool.name)
        
    return flask.render_template('worker.html', pools = pools_workers)
Beispiel #5
0
def pool():

    handle_worker_post(flask.request.form)

    pools = bitHopper.Tracking.Tracking.build_dict()

    percentage = {}
    priority = {}
    for pool in pools:
        priority[pool] = bitHopper.Configuration.Pools.get_priority(pool)
        percentage[pool] = bitHopper.Configuration.Pools.get_percentage(pool)

    return flask.render_template('pool.html',
                                 pools=pools,
                                 percentage=percentage,
                                 priority=priority)
Beispiel #6
0
def worker():

    #Check if this is a form submission
    handle_worker_post(flask.request.form)

    #Get a list of currently configured workers
    pools_workers = {}
    for pool in btcnet_info.get_pools():
        if pool.name is None:
            logging.debug(
                'Ignoring a Pool. If no pools apear on /worker please update your version of btcnet_info'
            )
            continue
        pools_workers[
            pool.name] = bitHopper.Configuration.Workers.get_worker_from(
                pool.name)

    return flask.render_template('worker.html', pools=pools_workers)
Beispiel #7
0
def stats():
    return flask.render_template('stats.html')