Determine whether the network reached consensus and whether we joined.
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);
Name |
Description |
---|---|
|
proposers in the last closing (not including us) |
|
proposers in this closing so far (not including us) |
|
proposers who agree with us |
|
proposers who have validated a ledger after this one |
|
how long, in milliseconds, it took to agree on the last ledger |
|
how long, in milliseconds, we've been trying to agree |
|
|6|Consensus constant parameters |
|
whether we should count ourselves |
|
journal for logging |
#include <ripple/consensus/Consensus.h>