20 #ifndef RIPPLE_APP_CONSENSUS_RCLCXLEDGER_H_INCLUDED
21 #define RIPPLE_APP_CONSENSUS_RCLCXLEDGER_H_INCLUDED
23 #include <ripple/app/ledger/Ledger.h>
24 #include <ripple/app/ledger/LedgerToJson.h>
25 #include <ripple/ledger/ReadView.h>
26 #include <ripple/protocol/RippleLedgerHash.h>
77 return ledger_->info().parentHash;
84 return ledger_->info().closeTimeResolution;
98 return ledger_->info().closeTime;
105 return ledger_->info().parentCloseTime;
bool closeAgree() const
Whether consensus process agreed on close time of the ledger.
LedgerIndex Seq
Sequence number of a ledger.
std::uint32_t LedgerIndex
A ledger index.
RCLCxLedger()=default
Default constructor.
RCLCxLedger(std::shared_ptr< Ledger const > const &l)
Constructor.
NetClock::time_point closeTime() const
The close time of this ledger.
Seq const & seq() const
Sequence number of the ledger.
ID const & parentID() const
Unique identifier (hash) of this ledger's parent.
NetClock::duration closeTimeResolution() const
Resolution used when calculating this ledger's close time.
Json::Value getJson() const
JSON representation of this ledger.
ID const & id() const
Unique identifier (hash) of this ledger.
LedgerHash ID
Unique identifier of a ledger.
Json::Value getJson(LedgerFill const &fill)
Return a new Json::Value representing the ledger with given options.
bool getCloseAgree(LedgerInfo const &info)
Represents a ledger in RCLConsensus.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::shared_ptr< Ledger const > ledger_
The ledger instance.
NetClock::time_point parentCloseTime() const
The close time of this ledger's parent.