def get_server_height(self) -> int:
        """Length of header chain, as claimed by main interface."""
        interface = self.interface
        return interface.tip if interface else 0
Length of header chain, as claimed by main interface.
electrum/network.py