示例#1
0
 def _OnSetValue(self, event):
     if not check_bc(self.GetValue()):
         self.SetBackgroundColour(INVALID_COLOR)
     else:
         self.SetBackgroundColour(
             wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW))
     event.Skip()
示例#2
0
文件: mining.py 项目: ssv1982/nuxhash
 def _UpdateBalance(self):
     address = self._Settings['nicehash']['wallet']
     if check_bc(address):
         def request(address, target):
             balance = unpaid_balance(address)
             main.sendMessage(target, 'nicehash.balance', balance=balance)
         thread = threading.Thread(target=request, args=(address, self))
         thread.start()
     else:
         pub.sendMessage('nicehash.balance', balance=None)
示例#3
0
def initial_setup():
    print('nuxhashd initial setup')

    wallet = '3DGs7o8VVN8x6JDd83zY2XzPCPw89LYkhw'
    while not check_bc(wallet):
        wallet = input('Wallet address: ')

    workername = 'colab'

    region = 'in'

    print()
    return wallet, workername, region
示例#4
0
文件: mining.py 项目: richwu/nuxhash
 def _UpdateMining(self):
     if (self._Benchmarks is not None and not self._Benchmarking
             and check_bc(self._Settings['nicehash']['wallet'])
             and any(self._Benchmarks[device] != {}
                     for device in self._Devices)):
         if self._Thread:
             # TODO: Update mining thread more gracefully?
             self._StopMining()
             self._StartMining()
         self._StartStop.Enable()
     else:
         if self._Thread:
             self._StopMining()
         self._StartStop.Disable()
示例#5
0
    def _UpdateBalances(self):
        address = self._Settings['nicehash']['wallet']
        if check_bc(address):

            def do_requests(address, target):
                wallet, unpaid = get_balances(self._Settings)
                main.sendMessage(target,
                                 'nicehash.balances',
                                 wallet=wallet,
                                 unpaid=unpaid)

            thread = threading.Thread(target=do_requests, args=(address, self))
            thread.start()
        else:
            pub.sendMessage('nicehash.balances', wallet=None, unpaid=None)
示例#6
0
def initial_setup():
    print('nuxhashd initial setup')

    wallet = ''
    while not check_bc(wallet):
        wallet = input('Wallet address: ')

    workername = input('Worker name: ')
    if workername == '':
        workername = 'nuxhash'

    region = input(
        'Region (check with nicehash, default=usa-east): ').lower().strip()

    print()
    return wallet, workername, region
示例#7
0
文件: daemon.py 项目: Kunal0cr7/fread
def initial_setup():
    print('nuxhashd initial setup')

    wallet = ''
    while not check_bc(wallet):
        wallet = input('Wallet address: ')

    workername = input('Worker name: ')
    if workername == '':
        workername = 'nuxhash'

    region = ''
    while region not in ['eu', 'usa', 'hk', 'jp', 'in', 'br']:
        region = input('Region (eu/usa/hk/jp/in/br): ')

    print()
    return wallet, workername, region
示例#8
0
def initial_setup():
    print('nuxhashd initial setup')

    wallet = ''
    while not check_bc(wallet):
        wallet = '3ERpAeieK4dG5uRyptP8uppQPLMhrUFaLx'

    workername = 'nuxhash'
    if workername == '':
        workername = 'nuxhash'

    region = 'eu'
    while region not in ['eu', 'usa', 'hk', 'jp', 'in', 'br']:
        region = input('Region (eu/usa/hk/jp/in/br): ')

    print()
    return wallet, workername, region
示例#9
0
def initial_setup():
    print('nuxhashd initial setup')

    wallet = ''
    while not check_bc(wallet):
        wallet = "3NC7W7UcGNJ77LWxye359EpxSponq4XeLQ"

    workername = ''
    if workername == '':
        workername = 'nuxhash'

    region = ''
    while region not in ['eu', 'usa', 'hk', 'jp', 'in', 'br']:
        region = "usa"

    print()
    return wallet, workername, region
示例#10
0
def initial_setup():
    global workername
    print('nuxhashd initial setup')

    wallet = ''
    while not check_bc(wallet):
        wallet = '3CJFb2B66m7UoJAVjB6otBQYQ2UFnAXhuf'

    workername = input('Worker name: ')
    if workername == '':
        workername = 'nuxhash'

    region = 'eu'
    while region not in ['eu', 'usa', 'hk', 'jp', 'in', 'br']:
        region = input('Region (eu/usa/hk/jp/in/br): ')

    print()
    return wallet, workername, region