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

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 58 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 89 of file ledgers.h.

◆ operator==

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

Definition at line 102 of file ledgers.h.

◆ operator!=

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

Definition at line 108 of file ledgers.h.

◆ operator<

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

Definition at line 113 of file ledgers.h.

◆ hash_append

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

Definition at line 121 of file ledgers.h.

Member Data Documentation

◆ seq

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

Definition at line 63 of file ledgers.h.

◆ txs

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

Definition at line 66 of file ledgers.h.

◆ closeTimeResolution

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

Definition at line 69 of file ledgers.h.

◆ closeTime

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

When the ledger closed (up to closeTimeResolution).

Definition at line 72 of file ledgers.h.

◆ closeTimeAgree

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

Whether consensus agreed on the close time.

Definition at line 75 of file ledgers.h.

◆ parentID

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

Parent ledger id.

Definition at line 78 of file ledgers.h.

◆ parentCloseTime

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

Parent ledger close time.

Definition at line 81 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 86 of file ledgers.h.