def test_check_operations(self, sandbox_multibranch: SandboxMultiBranch): min_level = min([ client.get_level() for client in sandbox_multibranch.all_clients() ]) heads_hash = set() # check there is exactly one head for client in sandbox_multibranch.all_clients(): block_hash = utils.get_block_hash(client, min_level) heads_hash.add(block_hash) assert len(heads_hash) == 1
def test_wait_for_alpha(self, sandbox_multibranch: SandboxMultiBranch): clients = sandbox_multibranch.all_clients() for client in clients: proto = ALPHA assert utils.check_protocol(client, proto)
def test_synchronize(self, sandbox_multibranch: SandboxMultiBranch): utils.synchronize(sandbox_multibranch.all_clients())