Adapts the generic Consensus
algorithm for use by RCL.
class RCLConsensus : public Consensus< RCLConsensus, RCLCxTraits >, public std::enable_shared_from_this< RCLConsensus >, public CountedObject< RCLConsensus >
Name |
Description |
---|---|
Clock type for measuring time within the consensus code. |
Name |
Description |
---|---|
Get the last closed ledger ID. |
|
Constructor. |
|
Get the Json state of the consensus process. |
|
Get the number of proposing peers that participated in the previous round. |
|
Get duration of the previous round. |
|
Process a transaction set, typically acquired from the network. |
|
Whether we have the correct last closed ledger. |
|
A peer has proposed a new position, adjust our tracking. |
|
Whether we are sending proposals during consensus. |
|
Simulate the consensus process without any network traffic. |
|
Kick-off the next round of consensus. |
|
Save the given consensus proposed by a peer with nodeID for later use in consensus. |
|
Call periodically to drive consensus forward. |
|
Whether we are validating consensus ledgers. |
Name |
Description |
---|---|
Accept a new last closed ledger. |
The enabled_shared_from_this base allows the application to properly create
a shared instance of RCLConsensus
for use in the accept
logic..
#include <ripple/app/consensus/RCLConsensus.h>