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()
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)
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
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()
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)
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
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
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
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
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