def setUpClass(self): import bitHopper bitHopper.setup_miner() gevent.sleep(0) import fake_pool fake_pool.initialize() gevent.sleep(0) import bitHopper.Configuration.Workers bitHopper.Configuration.Workers.add('test_pool', 'test', 'test') import bitHopper.Configuration.Pools bitHopper.Configuration.Pools.set_priority('test_pool', 1) gevent.sleep(0) bitHopper.custom_pools() gevent.sleep(0) bitHopper.Logic.ServerLogic.rebuild_servers() gevent.sleep(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)
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)
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)