Fix initiating ballot after HigherBallot when HigherBallot is in fact no higher

This commit is contained in:
Julien CLEMENT 2020-05-07 13:36:02 +02:00
parent 09f005406a
commit 6757f2df8f

@ -95,6 +95,8 @@ namespace paxos
void Legislator::receive_higher_ballot(int ballot)
{
int last_tried = ledger.last_tried();
if (last_tried > ballot)
return;
while (last_tried + (int)legislators.size() < ballot)
{