Determine if a consensus has been reached.
bool checkConsensusReached( std::size_t agreeing, std::size_t total, bool count_self);
This function determines if a consensus has been reached
Name |
Description |
---|---|
|
count of agreements with our position |
|
count of participants other than us |
|
whether we count ourselves |
True if a consensus has been reached
#include <ripple/consensus/LedgerTiming.h>