Exemplo n.º 1
0
def run():
    """Main driver function"""
    args = parse_config()
    
    #Setup debugging output
    bitHopper.setup_logging(logging.DEBUG if args.debug else logging.INFO)
        
    #Setup mining port
    bitHopper.setup_miner(port = args.mine_port, host=args.mine_localname)
    
    #Set up the control website
    bitHopper.setup_control(port = args.config_port, host=args.config_localname)
    
    #Setup Custom Pools
    bitHopper.custom_pools()

    while True:
        gevent.sleep(100)
Exemplo n.º 2
0
def run():
    """Main driver function"""
    args = parse_config()

    #Setup debugging output
    bitHopper.setup_logging(logging.DEBUG if args.debug else logging.INFO)

    #Setup mining port
    bitHopper.setup_miner(port=args.mine_port, host=args.mine_localname)

    #Set up the control website
    bitHopper.setup_control(port=args.config_port, host=args.config_localname)

    #Setup Custom Pools
    bitHopper.custom_pools()

    while True:
        gevent.sleep(100)
Exemplo n.º 3
0
 def setUpClass(self):
     import bitHopper
     bitHopper.setup_control()
Exemplo n.º 4
0
                    
    parser.add_argument('--mine_localname', metavar='cp', type=str, 
                    default='', help='Mining IP address to bind to')
                    
    parser.add_argument('--config_localname', metavar='cp', type=str, 
                    default='', help='Configuration IP address to bind to')
                    
    parser.add_argument('--debug', action="store_true", default=False)
                    
    return parser.parse_args()

if __name__ == "__main__":

    args = parse_config()
    
    #Setup debugging output
    bitHopper.setup_logging(logging.DEBUG if args.debug else logging.INFO)
        
    #Setup mining port
    bitHopper.setup_miner(port = args.mine_port, host=args.mine_localname)
    
    #Set up the control website
    bitHopper.setup_control(port = args.config_port, host=args.config_localname)
    
    #Setup Custom Pools
    bitHopper.custom_pools()

    while True:
        gevent.sleep(100)

Exemplo n.º 5
0
 def setUpClass(self):
     import bitHopper
     bitHopper.setup_control()
Exemplo n.º 6
0
    parser.add_argument('--config_localname',
                        metavar='cp',
                        type=str,
                        default='',
                        help='Configuration IP address to bind to')

    parser.add_argument('--debug', action="store_true", default=False)

    return parser.parse_args()


if __name__ == "__main__":

    args = parse_config()

    #Setup debugging output
    bitHopper.setup_logging(logging.DEBUG if args.debug else logging.INFO)

    #Setup mining port
    bitHopper.setup_miner(port=args.mine_port, host=args.mine_localname)

    #Set up the control website
    bitHopper.setup_control(port=args.config_port, host=args.config_localname)

    #Setup Custom Pools
    bitHopper.custom_pools()

    while True:
        gevent.sleep(100)