예제 #1
0
    def setup_head_alliance(self):
        alliance = Alliance(env.host, self.collect_addresses[env.host]['default'])

        if env.host == env.roledefs['alliance'][0]:
            alliance.start_mining()
        else:
            # To ensure that other alliance acknowledge the first alliance
            acknowledged = False
            while not acknowledged:
                if alliance.getblockcount() > 0:
                    acknowledged = True
예제 #2
0
    def setup_head_alliance(self):
        alliance = Alliance(env.host, self.collect_addresses[env.host]['default'])

        if env.host == env.roledefs['alliance'][0]:
            alliance.start_mining()
        else:
            # To ensure that other alliance acknowledge the first alliance
            acknowledged = False
            while not acknowledged:
                if alliance.getblockcount() > 0:
                    acknowledged = True
예제 #3
0
    def start_all_miners(self):
        alliance = Alliance(env.host, self.collect_addresses[env.host]['default'])

        return alliance.start_mining()
예제 #4
0
    def start_all_miners(self):
        alliance = Alliance(env.host, self.collect_addresses[env.host]['default'])

        return alliance.start_mining()