示例#1
0
    try:
        # Start donation thread
        Donate()
    except Exception as e:
        debugOutput("Error launching donation thread: " + str(e))

    try:
        for x in range(int(threadcount)):
            # Launch duco mining threads
            thread.append(x)
            thread[x] = Process(target=Thread,
                                args=(x, accepted, rejected, requested_diff,
                                      khashcount, username, efficiency,
                                      rig_identiier, algorithm, hashrates_list,
                                      totalhashrate_mean))
            thread[x].start()
            sleep(0.1)
    except Exception as e:
        prettyPrint(
            "sys0", "Error launching CPU thread(s)" + Style.NORMAL +
            Fore.RESET + " (cpu launch err: " + str(e) + ")", "error")
        debugOutput("Error launching CPU thead(s): " + str(e))

    try:
        # Discord rich presence threads
        initRichPresence()
        thrThread(target=updateRichPresence).start()
    except Exception as e:
        debugOutput("Error launching Discord RPC thead: " + str(e))
示例#2
0
文件: AVR_Miner.py 项目: 0x43b/Gold
        debug_output("Error reading configfile: " + str(e))
        sleep(10)
        _exit(1)

    try:
        # Display greeting message
        greeting()
        debug_output("greeting displayed")
    except Exception as e:
        debug_output("Error displaying greeting message: " + str(e))

    try:
        # Start donation thread
        donate()
    except Exception as e:
        debug_output("Error launching donation thread: " + str(e))

    try:
        # Launch avr duco mining threads
        for port in avrport:
            thrThread(target=mine_avr, args=(port, )).start()
    except Exception as e:
        debug_output("Error launching AVR thead(s): " + str(e))

    try:
        # Discord rich presence threads
        init_rich_presence()
        thrThread(target=update_rich_presence).start()
    except Exception as e:
        debug_output("Error launching Discord RPC thead: " + str(e))
示例#3
0
        debugOutput("Error reading configfile: " + str(e))
        sleep(10)
        _exit(1)

    try:
        # Display greeting message
        Greeting()
        debugOutput("Greeting displayed")
    except Exception as e:
        debugOutput("Error displaying greeting message: " + str(e))

    try:
        # Start donation thread
        Donate()
    except Exception as e:
        debugOutput("Error launching donation thread: " + str(e))

    try:
        # Launch avr duco mining threads
        for port in avrport:
            thrThread(target=AVRMine, args=(port, )).start()
    except Exception as e:
        debugOutput("Error launching AVR thead(s): " + str(e))

    try:
        # Discord rich presence threads
        initRichPresence()
        thrThread(target=updateRichPresence).start()
    except Exception as e:
        debugOutput("Error launching Discord RPC thead: " + str(e))
示例#4
0
    try:
        greeting()
        debug_output('Greeting displayed')
    except Exception as e:
        debug_output(f'Error displaying greeting message: {e}')

    if donation_level > 0:
        try:
            Donate.load(donation_level)
            Donate.start(donation_level)
        except Exception as e:
            debug_output(f'Error launching donation thread: {e}')

    try:
        fastest_pool = Client.fetch_pool()
        threadid = 0
        for port in avrport:
            thrThread(target=mine_avr,
                      args=(port, threadid, fastest_pool)).start()
            threadid += 1
    except Exception as e:
        debug_output(f'Error launching AVR thread(s): {e}')

    if discord_presence == "y":
        try:
            init_rich_presence()
            thrThread(target=update_rich_presence).start()
        except Exception as e:
            debug_output(f'Error launching Discord RPC thread: {e}')