PrevUpHomeNext

checkConsensus

Determine whether the network reached consensus and whether we joined.

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

Name

Description

prevProposers

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

parms

|6|Consensus constant parameters

proposing

whether we should count ourselves

j

journal for logging

Header

#include <ripple/consensus/Consensus.h>


PrevUpHomeNext