示例#1
0
    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
示例#2
0
 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
示例#3
0
 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