def add_block_proposal(self, p):
        assert isinstance(p, BlockProposal)
        if self.has_blockproposal(p.blockhash):
            self.log('known block_proposal')
            return
        assert p.signing_lockset.has_quorum  # on previous block
        assert p.signing_lockset.height == 1 - p.height
        for v in p.signing_lockset:
            self.add_vote(v)
        self.block_candidates[p.blockhash] = p
dataset/ETHPy150Open HydraChain/hydrachain/hydrachain/consensus/manager.py/ConsensusManager.add_block_proposal/swapped operands of `-`