Better logging
This commit is contained in:
parent
bd6ce7db3b
commit
879b82fb7e
@ -94,7 +94,12 @@ namespace paxos
|
|||||||
unsigned int nb_legislators = legislators.size();
|
unsigned int nb_legislators = legislators.size();
|
||||||
if (ballot != ledger.last_tried()
|
if (ballot != ledger.last_tried()
|
||||||
|| quorum_previous_votes.size() > nb_legislators / 2)
|
|| quorum_previous_votes.size() > nb_legislators / 2)
|
||||||
|
{
|
||||||
|
log("but it was discarded because ballot " + std::to_string(ballot)
|
||||||
|
+ " is outdated, it is either no longer in treatment or already started"
|
||||||
|
, red);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Decree decree;
|
Decree decree;
|
||||||
decree.decree = vote_decree;
|
decree.decree = vote_decree;
|
||||||
|
Loading…
Reference in New Issue
Block a user