def add_vote(self, v, force_replace=False):
        if self.lockset in v:
            return
        self.log('rm.adding', vote=v, received_proposal=self.proposal)
        try:
            success = self.lockset.add(v, force_replace)
        except InvalidVoteError:
            self.cm.tracked_protocol_failures.append(InvalidVoteEvidence(None, v))
            return
        # report failed proposer
        if self.lockset.is_valid:
            self.log('lockset is valid', ls=self.lockset)
            if not self.proposal and self.lockset.has_noquorum:
                self.cm.tracked_protocol_failures.append(
                    FailedToProposeEvidence(None, self.lockset))
        return success
dataset/ETHPy150Open HydraChain/hydrachain/hydrachain/consensus/manager.py/RoundManager.add_vote/swapped operands of `in`