hydrachain/consensus/manager.py
def last_voted_blockproposal(self):
        "the last block proposal node voted on"
        for r in self.rounds:
            if isinstance(self.rounds[r].proposal, BlockProposal):
                assert isinstance(self.rounds[r].lock, Vote)
                if self.rounds[r].proposal.blockhash == self.rounds[r].lock.blockhash:
                    return self.rounds[r].proposal
def last_voted_blockproposal(self):
        "the last block proposal node voted on"
        for r in self.rounds:
            if isinstance(self.rounds[r].proposal, BlockProposal):
                assert isinstance(self.rounds[r].lock, Vote)
                if self.rounds[r].proposal.blockhash == self.rounds[r].lock.blockhash:
                    return self.rounds[r].proposal
def last_voted_blockproposal ( self ) : for r in self . rounds : if isinstance ( self . rounds [ r ] . proposal , BlockProposal ) : assert isinstance ( self . rounds [ r ] . lock , Vote ) if self . rounds [ r ] . proposal . blockhash == self . rounds [ r ] . lock . blockhash : return self . rounds [ r ] . proposal
the last block proposal node voted on
the last block proposal node voted on