def get_base_protocol_class(self) -> Type[BaseP2PProtocol]:
    if (self.version == 5):
        return P2PProtocolV5
    elif (self.version == 4):
        return P2PProtocolV4
    else:
        raise Exception(f'Unknown protocol version: {self.version}.  Expected one of `4` or `5`')
def get_base_protocol_class(self) -> Type[BaseP2PProtocol]:
    if (self.version == 5):
        return P2PProtocolV5
    elif (self.version == 4):
        return P2PProtocolV4
    else:
        raise Exception(f'Unknown protocol version: {self.version}.  Expected one of `4` or `5`')