rippled
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
xrpl::test::csf::Ledger::Instance Struct Reference
Collaboration diagram for xrpl::test::csf::Ledger::Instance:
Collaboration graph
[legend]

Public Member Functions

 Instance ()
 
auto asTie () const
 

Public Attributes

Seq seq {0}
 
TxSetType txs
 
NetClock::duration closeTimeResolution = ledgerDefaultTimeResolution
 
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 61 of file ledgers.h.

Constructor & Destructor Documentation

◆ Instance()

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

Definition at line 63 of file ledgers.h.

Member Function Documentation

◆ asTie()

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

Definition at line 94 of file ledgers.h.

Friends And Related Symbol Documentation

◆ operator==

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

Definition at line 100 of file ledgers.h.

◆ operator!=

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

Definition at line 106 of file ledgers.h.

◆ operator<

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

Definition at line 111 of file ledgers.h.

◆ hash_append

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

Definition at line 119 of file ledgers.h.

Member Data Documentation

◆ seq

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

Definition at line 68 of file ledgers.h.

◆ txs

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

Definition at line 71 of file ledgers.h.

◆ closeTimeResolution

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

Definition at line 74 of file ledgers.h.

◆ closeTime

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

When the ledger closed (up to closeTimeResolution)

Definition at line 77 of file ledgers.h.

◆ closeTimeAgree

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

Whether consensus agreed on the close time.

Definition at line 80 of file ledgers.h.

◆ parentID

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

Parent ledger id.

Definition at line 83 of file ledgers.h.

◆ parentCloseTime

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

Parent ledger close time.

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