def approve_join(self, gname, node, epochno):
        if gname in self.groups:
            group = self.groups[gname]
            # Check if the epoch the node wants to be
            # added to is still the current epoch.
            success = False
            if group.get_epoch() == epochno:
                # Update the epoch and members
                group.inc_epoch()
                group.add_member(node)
                # Let other members know
                group.notifyAll()
                success = True
            return (success, group.get_epoch())
        else:
            raise KeyError(gname)
dataset/ETHPy150Open denizalti/concoord/concoord/object/meshmembership.py/MeshMembership.approve_join/original