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)
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)
def setUpClass(self): import bitHopper bitHopper.setup_control()
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)
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)