def update_ancestors_longest_chain(self):
        """Updates 'longest chain' stat of all ancestors of this user when relevant.
           Used after Boost step 2 confirmation so that all users involved have their longest chain stat updated.
        """
        from .utils import user_node

        ancestors = user_node(self.user).get_ancestors()
        chain_length = len(ancestors)