def check_learning():
    print 'Check learning started'
    while True:
        gevent.sleep(60)
        deepbit_blocks = set(json.loads(btcnet_info.get_pool('deepbit').blocks))
        for block in blocks_timing:
            if block in blocks_actual and blocks_actual[block] == 1:
                continue
            if block in deepbit_blocks:
                blocks_actual[block] = 1
                print 'Block %s has training value %s' % (block, blocks_actual[block])

#Connect to deepbit if possible
dataset/ETHPy150Open c00w/bitHopper/bitHopper/LongPoll_Listener/Learning.py/check_learning/original