xrpld
Loading...
Searching...
No Matches
xrpl::test::csf::Ledger::Instance Struct Reference
Collaboration diagram for xrpl::test::csf::Ledger::Instance:

Public Member Functions

 Instance ()=default
auto asTie () const

Public Attributes

Seq seq {0}
TxSetType txs
NetClock::duration closeTimeResolution = kLedgerDefaultTimeResolution
NetClock::time_point closeTime
 When the ledger closed (up to closeTimeResolution).
bool closeTimeAgree = true
 Whether consensus agreed on the close time.
ID parentID {0}
 Parent ledger id.
NetClock::time_point parentCloseTime
 Parent ledger close time.
std::vector< Ledger::IDancestors
 IDs of this ledgers ancestors.

Friends

bool operator== (Instance const &a, Instance const &b)
bool operator!= (Instance const &a, Instance const &b)
bool operator< (Instance const &a, Instance const &b)
template<class Hasher>
void hash_append (Hasher &h, Ledger::Instance const &instance)

Detailed Description

Definition at line 65 of file ledgers.h.

Constructor & Destructor Documentation

◆ Instance()

xrpl::test::csf::Ledger::Instance::Instance ( )
default

Member Function Documentation

◆ asTie()

auto xrpl::test::csf::Ledger::Instance::asTie ( ) const
nodiscard

Definition at line 106 of file ledgers.h.

◆ operator==

bool operator== ( Instance const & a,
Instance const & b )
friend

Definition at line 119 of file ledgers.h.

◆ operator!=

bool operator!= ( Instance const & a,
Instance const & b )
friend

Definition at line 125 of file ledgers.h.

◆ operator<

bool operator< ( Instance const & a,
Instance const & b )
friend

Definition at line 130 of file ledgers.h.

◆ hash_append

template<class Hasher>
void hash_append ( Hasher & h,
Ledger::Instance const & instance )
friend

Definition at line 138 of file ledgers.h.

Member Data Documentation

◆ seq

Seq xrpl::test::csf::Ledger::Instance::seq {0}

Definition at line 70 of file ledgers.h.

◆ txs

TxSetType xrpl::test::csf::Ledger::Instance::txs

Definition at line 73 of file ledgers.h.

◆ closeTimeResolution

NetClock::duration xrpl::test::csf::Ledger::Instance::closeTimeResolution = kLedgerDefaultTimeResolution

Definition at line 76 of file ledgers.h.

◆ closeTime

NetClock::time_point xrpl::test::csf::Ledger::Instance::closeTime

When the ledger closed (up to closeTimeResolution).

Definition at line 81 of file ledgers.h.

◆ closeTimeAgree

bool xrpl::test::csf::Ledger::Instance::closeTimeAgree = true

Whether consensus agreed on the close time.

Definition at line 86 of file ledgers.h.

◆ parentID

ID xrpl::test::csf::Ledger::Instance::parentID {0}

Parent ledger id.

Definition at line 91 of file ledgers.h.

◆ parentCloseTime

NetClock::time_point xrpl::test::csf::Ledger::Instance::parentCloseTime

Parent ledger close time.

Definition at line 96 of file ledgers.h.

◆ ancestors

std::vector<Ledger::ID> xrpl::test::csf::Ledger::Instance::ancestors

IDs of this ledgers ancestors.

Since each ledger already has unique ancestors based on the parentID, this member is not needed for any of the operators below.

Definition at line 103 of file ledgers.h.