def get_heaviest_peak(self) -> Optional[Tuple[(bytes32, uint32, uint128)]]:
    '\n        Returns: the header_hash, height, and weight of the heaviest block that one of our peers has notified\n        us of.\n        '
    if (len(self.peer_to_peak) == 0):
        return None
    heaviest_peak_hash: Optional[bytes32] = None
    heaviest_peak_weight: uint128 = uint128(0)
    heaviest_peak_height: Optional[uint32] = None
    for (peer_id, (peak_hash, height, weight)) in self.peer_to_peak.items():
        if (peak_hash not in self.peak_to_peer):
            continue
        if ((heaviest_peak_hash is None) or (weight > heaviest_peak_weight)):
            heaviest_peak_hash = peak_hash
            heaviest_peak_weight = weight
            heaviest_peak_height = height
    assert ((heaviest_peak_hash is not None) and (heaviest_peak_weight is not None) and (heaviest_peak_height is not None))
    return (heaviest_peak_hash, heaviest_peak_height, heaviest_peak_weight)
Returns: the header_hash, height, and weight of the heaviest block that one of our peers has notified
us of.
def get_heaviest_peak(self) -> Optional[Tuple[(bytes32, uint32, uint128)]]:
    '\n        Returns: the header_hash, height, and weight of the heaviest block that one of our peers has notified\n        us of.\n        '
    if (len(self.peer_to_peak) == 0):
        return None
    heaviest_peak_hash: Optional[bytes32] = None
    heaviest_peak_weight: uint128 = uint128(0)
    heaviest_peak_height: Optional[uint32] = None
    for (peer_id, (peak_hash, height, weight)) in self.peer_to_peak.items():
        if (peak_hash not in self.peak_to_peer):
            continue
        if ((heaviest_peak_hash is None) or (weight > heaviest_peak_weight)):
            heaviest_peak_hash = peak_hash
            heaviest_peak_weight = weight
            heaviest_peak_height = height
    assert ((heaviest_peak_hash is not None) and (heaviest_peak_weight is not None) and (heaviest_peak_height is not None))
    return (heaviest_peak_hash, heaviest_peak_height, heaviest_peak_weight)