PrevUpHomeNext

checkConsensus

Determine whether the network reached consensus and whether we joined.

Synopsis
ConsensusState
checkConsensus(
    std::size_t previousProposers,
    std::size_t currentProposers,
    std::size_t currentAgree,
    std::size_t currentFinished,
    std::chrono::milliseconds previousAgreeTime,
    std::chrono::milliseconds currentAgreeTime,
    bool proposing,
    beast::Journal j);
Description
Parameters

Name

Description

previousProposers

proposers in the last closing (not including us)

currentProposers

proposers in this closing so far (not including us)

currentAgree

proposers who agree with us

currentFinished

proposers who have validated a ledger after this one

previousAgreeTime

how long, in milliseconds, it took to agree on the last ledger

currentAgreeTime

how long, in milliseconds, we've been trying to agree

proposing

whether we should count ourselves

j

journal for logging

Header

#include <ripple/consensus/LedgerTiming.h>


PrevUpHomeNext