PrevUpHomeNext

RCLConsensus

Adapts the generic Consensus algorithm for use by RCL.

Synopsis
class RCLConsensus :
    public Consensus< RCLConsensus, RCLCxTraits >,
    public std::enable_shared_from_this< RCLConsensus >,
    public CountedObject< RCLConsensus >
Types

Name

Description

clock_type

Clock type for measuring time within the consensus code.

Member Functions

Name

Description

LCL

Get the last closed ledger ID.

RCLConsensus

Constructor.

getCountedObjectName

getJson

Get the Json state of the consensus process.

getLastCloseProposers

Get the number of proposing peers that participated in the previous round.

getLastConvergeDuration

Get duration of the previous round.

gotTxSet

Process a transaction set, typically acquired from the network.

haveCorrectLCL

Whether we have the correct last closed ledger.

peerProposal

A peer has proposed a new position, adjust our tracking.

proposing

Whether we are sending proposals during consensus.

simulate

Simulate the consensus process without any network traffic.

startRound

Kick-off the next round of consensus.

storeProposal

Save the given consensus proposed by a peer with nodeID for later use in consensus.

timerEntry

Call periodically to drive consensus forward.

validating

Whether we are validating consensus ledgers.

Protected Member Functions

Name

Description

accept

Accept a new last closed ledger.

Description
Remarks

The enabled_shared_from_this base allows the application to properly create a shared instance of RCLConsensus for use in the accept logic..

Header

#include <ripple/app/consensus/RCLConsensus.h>


PrevUpHomeNext