示例#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)
示例#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) 
示例#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)
示例#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)
示例#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)
示例#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)
示例#7
0
def stats():
    return flask.render_template('stats.html')