def diff512rate(worker): period = get_period(request.query.period or 'Day') return jsonize([x for x in DATASTORE.getdiffrate(worker, 512, period)])
def rejectrate(): # approximate based on percentage of shares period = get_period(request.query.period or 'Day') workers = DATASTORE.getactiveworkers(period) return jsonize( sum_columns([DATASTORE.getrejectrate(x, period) for x in workers]))
def rejectrate(worker): # approximate based on percentage of shares period = get_period(request.query.period or 'Day') return jsonize([x for x in DATASTORE.getrejectrate(worker, period)])
def hashrate(): period = get_period(request.query.period or 'Day') workers = DATASTORE.getactiveworkers(period) return jsonize( sum_columns([DATASTORE.gethashrate(x, period) for x in workers]))
def hashrate(worker): period = get_period(request.query.period or 'Day') return jsonize([x for x in DATASTORE.gethashrate(worker, period)])
def diff512rate(worker): period = get_period(request.query.period or 'Day') return jsonize([ x for x in DATASTORE.getdiffrate(worker, 512, period)])
def activeworkers(): period = get_period(request.query.period or 'Day') return jsonize([x for x in DATASTORE.getactiveworkers(period)])
def rejectrate(worker): # approximate based on percentage of shares period = get_period(request.query.period or 'Day') return jsonize([ x for x in DATASTORE.getrejectrate(worker, period)])
def rejectrate(): # approximate based on percentage of shares period = get_period(request.query.period or 'Day') workers = DATASTORE.getactiveworkers(period) return jsonize(sum_columns([ DATASTORE.getrejectrate(x, period) for x in workers ]))
def hashrate(worker): period = get_period(request.query.period or 'Day') return jsonize([ x for x in DATASTORE.gethashrate(worker, period)])
def hashrate(): period = get_period(request.query.period or 'Day') workers = DATASTORE.getactiveworkers(period) return jsonize(sum_columns([ DATASTORE.gethashrate(x, period) for x in workers ]))