def validate_account_not_in_use(account): """ Check whether account is already used for another worker or not :param str account: bitshares account name """ workers = Config().workers_data for worker_name, worker in workers.items(): if worker['account'] == account: return False return True
def is_account_in_use(account): workers = Config().workers_data for worker_name, worker in workers.items(): if worker['account'] == account: return True return False
def validate_account_not_in_use(cls, account): workers = Config().workers_data for worker_name, worker in workers.items(): if worker['account'] == account: return False return True