def get_max_forkpoint(self) -> int:
        """Returns the max height where there is a fork
        related to this chain.
        """
        mc = self.get_max_child()
        return mc if mc is not None else self.forkpoint
Returns the max height where there is a fork
        related to this chain.
        
electrum/blockchain.py