def __eq__(self, other):
    return (isinstance(other, CInv) and (self.hash == other.hash) and (self.type == other.type))
def __eq__(self, other):
    return (isinstance(other, CInv) and (self.hash == other.hash) and (self.type == other.type))