PrevUpHomeNext

checkConsensusReached

Determine if a consensus has been reached.

Synopsis
bool
checkConsensusReached(
    std::size_t agreeing,
    std::size_t total,
    bool count_self);
Description

This function determines if a consensus has been reached

Parameters

Name

Description

agreeing

count of agreements with our position

total

count of participants other than us

count_self

whether we count ourselves

Return Value

True if a consensus has been reached

Header

#include <ripple/consensus/LedgerTiming.h>


PrevUpHomeNext