rippled
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ripple::LedgerMaster Class Reference
Inheritance diagram for ripple::LedgerMaster:
Inheritance graph
[legend]
Collaboration diagram for ripple::LedgerMaster:
Collaboration graph
[legend]

Classes

struct  Stats
 

Public Member Functions

 LedgerMaster (Application &app, Stopwatch &stopwatch, beast::insight::Collector::ptr const &collector, beast::Journal journal)
 
virtual ~LedgerMaster ()=default
 
LedgerIndex getCurrentLedgerIndex ()
 
LedgerIndex getValidLedgerIndex ()
 
bool isCompatible (ReadView const &, beast::Journal::Stream, char const *reason)
 
std::recursive_mutexpeekMutex ()
 
std::shared_ptr< ReadView const > getCurrentLedger ()
 
std::shared_ptr< Ledger const > getClosedLedger ()
 
std::shared_ptr< Ledger const > getValidatedLedger ()
 
Rules getValidatedRules ()
 
std::shared_ptr< ReadView const > getPublishedLedger ()
 
std::chrono::seconds getPublishedLedgerAge ()
 
std::chrono::seconds getValidatedLedgerAge ()
 
bool isCaughtUp (std::string &reason)
 
std::uint32_t getEarliestFetch ()
 
bool storeLedger (std::shared_ptr< Ledger const > ledger)
 
void setFullLedger (std::shared_ptr< Ledger const > const &ledger, bool isSynchronous, bool isCurrent)
 
bool canBeCurrent (std::shared_ptr< Ledger const > const &ledger)
 Check the sequence number and parent close time of a ledger against our clock and last validated ledger to see if it can be the network's current ledger. More...
 
void switchLCL (std::shared_ptr< Ledger const > const &lastClosed)
 
void failedSave (std::uint32_t seq, uint256 const &hash)
 
std::string getCompleteLedgers ()
 
void applyHeldTransactions ()
 Apply held transactions to the open ledger This is normally called as we close the ledger. More...
 
std::shared_ptr< STTx const > popAcctTransaction (std::shared_ptr< STTx const > const &tx)
 Get the next transaction held for a particular account if any. More...
 
uint256 getHashBySeq (std::uint32_t index)
 Get a ledger's hash by sequence number using the cache. More...
 
std::optional< LedgerHashwalkHashBySeq (std::uint32_t index, InboundLedger::Reason reason)
 Walk to a ledger's hash using the skip list. More...
 
std::optional< LedgerHashwalkHashBySeq (std::uint32_t index, std::shared_ptr< ReadView const > const &referenceLedger, InboundLedger::Reason reason)
 Walk the chain of ledger hashes to determine the hash of the ledger with the specified index. More...
 
std::shared_ptr< Ledger const > getLedgerBySeq (std::uint32_t index)
 
std::shared_ptr< Ledger const > getLedgerByHash (uint256 const &hash)
 
void setLedgerRangePresent (std::uint32_t minV, std::uint32_t maxV)
 
std::optional< NetClock::time_pointgetCloseTimeBySeq (LedgerIndex ledgerIndex)
 
std::optional< NetClock::time_pointgetCloseTimeByHash (LedgerHash const &ledgerHash, LedgerIndex ledgerIndex)
 
void addHeldTransaction (std::shared_ptr< Transaction > const &trans)
 
void fixMismatch (ReadView const &ledger)
 
bool haveLedger (std::uint32_t seq)
 
void clearLedger (std::uint32_t seq)
 
bool getValidatedRange (std::uint32_t &minVal, std::uint32_t &maxVal)
 
bool getFullValidatedRange (std::uint32_t &minVal, std::uint32_t &maxVal)
 
void sweep ()
 
float getCacheHitRate ()
 
void checkAccept (std::shared_ptr< Ledger const > const &ledger)
 
void checkAccept (uint256 const &hash, std::uint32_t seq)
 
void consensusBuilt (std::shared_ptr< Ledger const > const &ledger, uint256 const &consensusHash, Json::Value consensus)
 Report that the consensus process built a particular ledger. More...
 
void setBuildingLedger (LedgerIndex index)
 
void tryAdvance ()
 
bool newPathRequest ()
 
bool isNewPathRequest ()
 
bool newOrderBookDB ()
 
bool fixIndex (LedgerIndex ledgerIndex, LedgerHash const &ledgerHash)
 
void clearPriorLedgers (LedgerIndex seq)
 
void clearLedgerCachePrior (LedgerIndex seq)
 
void takeReplay (std::unique_ptr< LedgerReplay > replay)
 
std::unique_ptr< LedgerReplayreleaseReplay ()
 
void gotFetchPack (bool progress, std::uint32_t seq)
 
void addFetchPack (uint256 const &hash, std::shared_ptr< Blob > data)
 
std::optional< BlobgetFetchPack (uint256 const &hash) override
 Retrieves partial ledger data of the coresponding hash from peers. More...
 
void makeFetchPack (std::weak_ptr< Peer > const &wPeer, std::shared_ptr< protocol::TMGetObjectByHash > const &request, uint256 haveLedgerHash, UptimeClock::time_point uptime)
 
std::size_t getFetchPackCacheSize () const
 
bool haveValidated ()
 Whether we have ever fully validated a ledger. More...
 
std::optional< LedgerIndexminSqlSeq ()
 

Private Member Functions

void setValidLedger (std::shared_ptr< Ledger const > const &l)
 
void setPubLedger (std::shared_ptr< Ledger const > const &l)
 
void tryFill (std::shared_ptr< Ledger const > ledger)
 
void getFetchPack (LedgerIndex missing, InboundLedger::Reason reason)
 Request a fetch pack to get to the specified ledger. More...
 
std::optional< LedgerHashgetLedgerHashForHistory (LedgerIndex index, InboundLedger::Reason reason)
 
std::size_t getNeededValidations ()
 Determines how many validations are needed to fully validate a ledger. More...
 
void fetchForHistory (std::uint32_t missing, bool &progress, InboundLedger::Reason reason, std::unique_lock< std::recursive_mutex > &)
 
void doAdvance (std::unique_lock< std::recursive_mutex > &)
 
std::vector< std::shared_ptr< Ledger const > > findNewLedgersToPublish (std::unique_lock< std::recursive_mutex > &)
 
void updatePaths ()
 
bool newPFWork (const char *name, std::unique_lock< std::recursive_mutex > &)
 A thread needs to be dispatched to handle pathfinding work of some kind. More...
 
void collect_metrics ()
 

Private Attributes

Applicationapp_
 
beast::Journal m_journal
 
std::recursive_mutex m_mutex
 
LedgerHolder mClosedLedger
 
LedgerHolder mValidLedger
 
std::shared_ptr< Ledger const > mPubLedger
 
std::shared_ptr< Ledger const > mPathLedger
 
std::shared_ptr< Ledger const > mHistLedger
 
std::shared_ptr< Ledger const > mShardLedger
 
std::pair< uint256, LedgerIndexmLastValidLedger {uint256(), 0}
 
LedgerHistory mLedgerHistory
 
CanonicalTXSet mHeldTransactions {uint256()}
 
std::unique_ptr< LedgerReplayreplayData
 
std::recursive_mutex mCompleteLock
 
RangeSet< std::uint32_tmCompleteLedgers
 
bool mAdvanceThread {false}
 
bool mAdvanceWork {false}
 
int mFillInProgress {0}
 
int mPathFindThread {0}
 
bool mPathFindNewRequest {false}
 
std::atomic_flag mGotFetchPackThread
 
std::atomic< std::uint32_tmPubLedgerClose {0}
 
std::atomic< LedgerIndexmPubLedgerSeq {0}
 
std::atomic< std::uint32_tmValidLedgerSign {0}
 
std::atomic< LedgerIndexmValidLedgerSeq {0}
 
std::atomic< LedgerIndexmBuildingLedgerSeq {0}
 
const bool standalone_
 
const std::uint32_t fetch_depth_
 
const std::uint32_t ledger_history_
 
const std::uint32_t ledger_fetch_size_
 
TaggedCache< uint256, Blobfetch_packs_
 
std::uint32_t fetch_seq_ {0}
 
const LedgerIndex max_ledger_difference_ {1000000}
 
TimeKeeper::time_point upgradeWarningPrevTime_ {}
 
Stats m_stats
 

Detailed Description

Definition at line 70 of file LedgerMaster.h.

Constructor & Destructor Documentation

◆ LedgerMaster()

ripple::LedgerMaster::LedgerMaster ( Application app,
Stopwatch stopwatch,
beast::insight::Collector::ptr const &  collector,
beast::Journal  journal 
)
explicit

Definition at line 183 of file LedgerMaster.cpp.

◆ ~LedgerMaster()

virtual ripple::LedgerMaster::~LedgerMaster ( )
virtualdefault

Member Function Documentation

◆ getCurrentLedgerIndex()

LedgerIndex ripple::LedgerMaster::getCurrentLedgerIndex ( )

Definition at line 207 of file LedgerMaster.cpp.

◆ getValidLedgerIndex()

LedgerIndex ripple::LedgerMaster::getValidLedgerIndex ( )

Definition at line 213 of file LedgerMaster.cpp.

◆ isCompatible()

bool ripple::LedgerMaster::isCompatible ( ReadView const &  view,
beast::Journal::Stream  s,
char const *  reason 
)

Definition at line 219 of file LedgerMaster.cpp.

◆ peekMutex()

std::recursive_mutex & ripple::LedgerMaster::peekMutex ( )

Definition at line 1647 of file LedgerMaster.cpp.

◆ getCurrentLedger()

std::shared_ptr< ReadView const > ripple::LedgerMaster::getCurrentLedger ( )

Definition at line 1654 of file LedgerMaster.cpp.

◆ getClosedLedger()

std::shared_ptr<Ledger const> ripple::LedgerMaster::getClosedLedger ( )

Definition at line 98 of file LedgerMaster.h.

◆ getValidatedLedger()

std::shared_ptr< Ledger const > ripple::LedgerMaster::getValidatedLedger ( )

Definition at line 1664 of file LedgerMaster.cpp.

◆ getValidatedRules()

Rules ripple::LedgerMaster::getValidatedRules ( )

Definition at line 1679 of file LedgerMaster.cpp.

◆ getPublishedLedger()

std::shared_ptr< ReadView const > ripple::LedgerMaster::getPublishedLedger ( )

Definition at line 1694 of file LedgerMaster.cpp.

◆ getPublishedLedgerAge()

std::chrono::seconds ripple::LedgerMaster::getPublishedLedgerAge ( )

Definition at line 250 of file LedgerMaster.cpp.

◆ getValidatedLedgerAge()

std::chrono::seconds ripple::LedgerMaster::getValidatedLedgerAge ( )

Definition at line 274 of file LedgerMaster.cpp.

◆ isCaughtUp()

bool ripple::LedgerMaster::isCaughtUp ( std::string reason)

Definition at line 305 of file LedgerMaster.cpp.

◆ getEarliestFetch()

std::uint32_t ripple::LedgerMaster::getEarliestFetch ( )

Definition at line 697 of file LedgerMaster.cpp.

◆ storeLedger()

bool ripple::LedgerMaster::storeLedger ( std::shared_ptr< Ledger const >  ledger)

Definition at line 536 of file LedgerMaster.cpp.

◆ setFullLedger()

void ripple::LedgerMaster::setFullLedger ( std::shared_ptr< Ledger const > const &  ledger,
bool  isSynchronous,
bool  isCurrent 
)

Definition at line 911 of file LedgerMaster.cpp.

◆ canBeCurrent()

bool ripple::LedgerMaster::canBeCurrent ( std::shared_ptr< Ledger const > const &  ledger)

Check the sequence number and parent close time of a ledger against our clock and last validated ledger to see if it can be the network's current ledger.

Definition at line 436 of file LedgerMaster.cpp.

◆ switchLCL()

void ripple::LedgerMaster::switchLCL ( std::shared_ptr< Ledger const > const &  lastClosed)

Definition at line 504 of file LedgerMaster.cpp.

◆ failedSave()

void ripple::LedgerMaster::failedSave ( std::uint32_t  seq,
uint256 const &  hash 
)

Definition at line 972 of file LedgerMaster.cpp.

◆ getCompleteLedgers()

std::string ripple::LedgerMaster::getCompleteLedgers ( )

Definition at line 1701 of file LedgerMaster.cpp.

◆ applyHeldTransactions()

void ripple::LedgerMaster::applyHeldTransactions ( )

Apply held transactions to the open ledger This is normally called as we close the ledger.

The open ledger remains open to handle new transactions until a new open ledger is built.

Definition at line 549 of file LedgerMaster.cpp.

◆ popAcctTransaction()

std::shared_ptr< STTx const > ripple::LedgerMaster::popAcctTransaction ( std::shared_ptr< STTx const > const &  tx)

Get the next transaction held for a particular account if any.

This is normally called when a transaction for that account is successfully applied to the open ledger so the next transaction can be resubmitted without waiting for ledger close.

Definition at line 574 of file LedgerMaster.cpp.

◆ getHashBySeq()

uint256 ripple::LedgerMaster::getHashBySeq ( std::uint32_t  index)

Get a ledger's hash by sequence number using the cache.

Definition at line 1743 of file LedgerMaster.cpp.

◆ walkHashBySeq() [1/2]

std::optional< LedgerHash > ripple::LedgerMaster::walkHashBySeq ( std::uint32_t  index,
InboundLedger::Reason  reason 
)

Walk to a ledger's hash using the skip list.

Definition at line 1754 of file LedgerMaster.cpp.

◆ walkHashBySeq() [2/2]

std::optional< LedgerHash > ripple::LedgerMaster::walkHashBySeq ( std::uint32_t  index,
std::shared_ptr< ReadView const > const &  referenceLedger,
InboundLedger::Reason  reason 
)

Walk the chain of ledger hashes to determine the hash of the ledger with the specified index.

The referenceLedger is used as the base of the chain and should be fully validated and must not precede the target index. This function may throw if nodes from the reference ledger or any prior ledger are not present in the node store.

Definition at line 1765 of file LedgerMaster.cpp.

◆ getLedgerBySeq()

std::shared_ptr< Ledger const > ripple::LedgerMaster::getLedgerBySeq ( std::uint32_t  index)

Definition at line 1818 of file LedgerMaster.cpp.

◆ getLedgerByHash()

std::shared_ptr< Ledger const > ripple::LedgerMaster::getLedgerByHash ( uint256 const &  hash)

Definition at line 1854 of file LedgerMaster.cpp.

◆ setLedgerRangePresent()

void ripple::LedgerMaster::setLedgerRangePresent ( std::uint32_t  minV,
std::uint32_t  maxV 
)

Definition at line 1867 of file LedgerMaster.cpp.

◆ getCloseTimeBySeq()

std::optional< NetClock::time_point > ripple::LedgerMaster::getCloseTimeBySeq ( LedgerIndex  ledgerIndex)

Definition at line 1713 of file LedgerMaster.cpp.

◆ getCloseTimeByHash()

std::optional< NetClock::time_point > ripple::LedgerMaster::getCloseTimeByHash ( LedgerHash const &  ledgerHash,
LedgerIndex  ledgerIndex 
)

Definition at line 1721 of file LedgerMaster.cpp.

◆ addHeldTransaction()

void ripple::LedgerMaster::addHeldTransaction ( std::shared_ptr< Transaction > const &  trans)

Definition at line 425 of file LedgerMaster.cpp.

◆ fixMismatch()

void ripple::LedgerMaster::fixMismatch ( ReadView const &  ledger)

Definition at line 856 of file LedgerMaster.cpp.

◆ haveLedger()

bool ripple::LedgerMaster::haveLedger ( std::uint32_t  seq)

Definition at line 588 of file LedgerMaster.cpp.

◆ clearLedger()

void ripple::LedgerMaster::clearLedger ( std::uint32_t  seq)

Definition at line 595 of file LedgerMaster.cpp.

◆ getValidatedRange()

bool ripple::LedgerMaster::getValidatedRange ( std::uint32_t minVal,
std::uint32_t maxVal 
)

Definition at line 630 of file LedgerMaster.cpp.

◆ getFullValidatedRange()

bool ripple::LedgerMaster::getFullValidatedRange ( std::uint32_t minVal,
std::uint32_t maxVal 
)

Definition at line 603 of file LedgerMaster.cpp.

◆ sweep()

void ripple::LedgerMaster::sweep ( )

Definition at line 1874 of file LedgerMaster.cpp.

◆ getCacheHitRate()

float ripple::LedgerMaster::getCacheHitRate ( )

Definition at line 1881 of file LedgerMaster.cpp.

◆ checkAccept() [1/2]

void ripple::LedgerMaster::checkAccept ( std::shared_ptr< Ledger const > const &  ledger)

Definition at line 1042 of file LedgerMaster.cpp.

◆ checkAccept() [2/2]

void ripple::LedgerMaster::checkAccept ( uint256 const &  hash,
std::uint32_t  seq 
)

Definition at line 981 of file LedgerMaster.cpp.

◆ consensusBuilt()

void ripple::LedgerMaster::consensusBuilt ( std::shared_ptr< Ledger const > const &  ledger,
uint256 const &  consensusHash,
Json::Value  consensus 
)

Report that the consensus process built a particular ledger.

Definition at line 1190 of file LedgerMaster.cpp.

◆ setBuildingLedger()

void ripple::LedgerMaster::setBuildingLedger ( LedgerIndex  index)

Definition at line 582 of file LedgerMaster.cpp.

◆ tryAdvance()

void ripple::LedgerMaster::tryAdvance ( )

Definition at line 1459 of file LedgerMaster.cpp.

◆ newPathRequest()

bool ripple::LedgerMaster::newPathRequest ( )

Definition at line 1595 of file LedgerMaster.cpp.

◆ isNewPathRequest()

bool ripple::LedgerMaster::isNewPathRequest ( )

Definition at line 1603 of file LedgerMaster.cpp.

◆ newOrderBookDB()

bool ripple::LedgerMaster::newOrderBookDB ( )

Definition at line 1614 of file LedgerMaster.cpp.

◆ fixIndex()

bool ripple::LedgerMaster::fixIndex ( LedgerIndex  ledgerIndex,
LedgerHash const &  ledgerHash 
)

Definition at line 530 of file LedgerMaster.cpp.

◆ clearPriorLedgers()

void ripple::LedgerMaster::clearPriorLedgers ( LedgerIndex  seq)

Definition at line 1887 of file LedgerMaster.cpp.

◆ clearLedgerCachePrior()

void ripple::LedgerMaster::clearLedgerCachePrior ( LedgerIndex  seq)

Definition at line 1895 of file LedgerMaster.cpp.

◆ takeReplay()

void ripple::LedgerMaster::takeReplay ( std::unique_ptr< LedgerReplay replay)

Definition at line 1901 of file LedgerMaster.cpp.

◆ releaseReplay()

std::unique_ptr< LedgerReplay > ripple::LedgerMaster::releaseReplay ( )

Definition at line 1907 of file LedgerMaster.cpp.

◆ gotFetchPack()

void ripple::LedgerMaster::gotFetchPack ( bool  progress,
std::uint32_t  seq 
)

Definition at line 2159 of file LedgerMaster.cpp.

◆ addFetchPack()

void ripple::LedgerMaster::addFetchPack ( uint256 const &  hash,
std::shared_ptr< Blob data 
)

Definition at line 2140 of file LedgerMaster.cpp.

◆ getFetchPack() [1/2]

std::optional< Blob > ripple::LedgerMaster::getFetchPack ( uint256 const &  nodeHash)
overridevirtual

Retrieves partial ledger data of the coresponding hash from peers.

`

Parameters
nodeHashThe 256-bit hash of the data to fetch.
Returns
std::nullopt if the hash isn't cached, otherwise, the hash associated data.

Implements ripple::AbstractFetchPackContainer.

Definition at line 2146 of file LedgerMaster.cpp.

◆ makeFetchPack()

void ripple::LedgerMaster::makeFetchPack ( std::weak_ptr< Peer > const &  wPeer,
std::shared_ptr< protocol::TMGetObjectByHash > const &  request,
uint256  haveLedgerHash,
UptimeClock::time_point  uptime 
)

Definition at line 2229 of file LedgerMaster.cpp.

◆ getFetchPackCacheSize()

std::size_t ripple::LedgerMaster::getFetchPackCacheSize ( ) const

Definition at line 2360 of file LedgerMaster.cpp.

◆ haveValidated()

bool ripple::LedgerMaster::haveValidated ( )

Whether we have ever fully validated a ledger.

Definition at line 286 of file LedgerMaster.h.

◆ minSqlSeq()

std::optional< LedgerIndex > ripple::LedgerMaster::minSqlSeq ( )

Definition at line 2367 of file LedgerMaster.cpp.

◆ setValidLedger()

void ripple::LedgerMaster::setValidLedger ( std::shared_ptr< Ledger const > const &  l)
private

Definition at line 336 of file LedgerMaster.cpp.

◆ setPubLedger()

void ripple::LedgerMaster::setPubLedger ( std::shared_ptr< Ledger const > const &  l)
private

Definition at line 417 of file LedgerMaster.cpp.

◆ tryFill()

void ripple::LedgerMaster::tryFill ( std::shared_ptr< Ledger const >  ledger)
private

Definition at line 711 of file LedgerMaster.cpp.

◆ getFetchPack() [2/2]

void ripple::LedgerMaster::getFetchPack ( LedgerIndex  missing,
InboundLedger::Reason  reason 
)
private

Request a fetch pack to get to the specified ledger.

Definition at line 783 of file LedgerMaster.cpp.

◆ getLedgerHashForHistory()

std::optional< LedgerHash > ripple::LedgerMaster::getLedgerHashForHistory ( LedgerIndex  index,
InboundLedger::Reason  reason 
)
private

Definition at line 1291 of file LedgerMaster.cpp.

◆ getNeededValidations()

std::size_t ripple::LedgerMaster::getNeededValidations ( )
private

Determines how many validations are needed to fully validate a ledger.

Returns
Number of validations needed

Definition at line 1036 of file LedgerMaster.cpp.

◆ fetchForHistory()

void ripple::LedgerMaster::fetchForHistory ( std::uint32_t  missing,
bool &  progress,
InboundLedger::Reason  reason,
std::unique_lock< std::recursive_mutex > &  sl 
)
private

Definition at line 1913 of file LedgerMaster.cpp.

◆ doAdvance()

void ripple::LedgerMaster::doAdvance ( std::unique_lock< std::recursive_mutex > &  sl)
private

Definition at line 2039 of file LedgerMaster.cpp.

◆ findNewLedgersToPublish()

std::vector< std::shared_ptr< Ledger const > > ripple::LedgerMaster::findNewLedgersToPublish ( std::unique_lock< std::recursive_mutex > &  sl)
private

Definition at line 1314 of file LedgerMaster.cpp.

◆ updatePaths()

void ripple::LedgerMaster::updatePaths ( )
private

Definition at line 1491 of file LedgerMaster.cpp.

◆ newPFWork()

bool ripple::LedgerMaster::newPFWork ( const char *  name,
std::unique_lock< std::recursive_mutex > &   
)
private

A thread needs to be dispatched to handle pathfinding work of some kind.

Definition at line 1625 of file LedgerMaster.cpp.

◆ collect_metrics()

void ripple::LedgerMaster::collect_metrics ( )
private

Definition at line 435 of file LedgerMaster.h.

Member Data Documentation

◆ app_

Application& ripple::LedgerMaster::app_
private

Definition at line 334 of file LedgerMaster.h.

◆ m_journal

beast::Journal ripple::LedgerMaster::m_journal
private

Definition at line 335 of file LedgerMaster.h.

◆ m_mutex

std::recursive_mutex ripple::LedgerMaster::m_mutex
mutableprivate

Definition at line 337 of file LedgerMaster.h.

◆ mClosedLedger

LedgerHolder ripple::LedgerMaster::mClosedLedger
private

Definition at line 340 of file LedgerMaster.h.

◆ mValidLedger

LedgerHolder ripple::LedgerMaster::mValidLedger
private

Definition at line 343 of file LedgerMaster.h.

◆ mPubLedger

std::shared_ptr<Ledger const> ripple::LedgerMaster::mPubLedger
private

Definition at line 346 of file LedgerMaster.h.

◆ mPathLedger

std::shared_ptr<Ledger const> ripple::LedgerMaster::mPathLedger
private

Definition at line 349 of file LedgerMaster.h.

◆ mHistLedger

std::shared_ptr<Ledger const> ripple::LedgerMaster::mHistLedger
private

Definition at line 352 of file LedgerMaster.h.

◆ mShardLedger

std::shared_ptr<Ledger const> ripple::LedgerMaster::mShardLedger
private

Definition at line 355 of file LedgerMaster.h.

◆ mLastValidLedger

std::pair<uint256, LedgerIndex> ripple::LedgerMaster::mLastValidLedger {uint256(), 0}
private

Definition at line 358 of file LedgerMaster.h.

◆ mLedgerHistory

LedgerHistory ripple::LedgerMaster::mLedgerHistory
private

Definition at line 360 of file LedgerMaster.h.

◆ mHeldTransactions

CanonicalTXSet ripple::LedgerMaster::mHeldTransactions {uint256()}
private

Definition at line 362 of file LedgerMaster.h.

◆ replayData

std::unique_ptr<LedgerReplay> ripple::LedgerMaster::replayData
private

Definition at line 365 of file LedgerMaster.h.

◆ mCompleteLock

std::recursive_mutex ripple::LedgerMaster::mCompleteLock
private

Definition at line 367 of file LedgerMaster.h.

◆ mCompleteLedgers

RangeSet<std::uint32_t> ripple::LedgerMaster::mCompleteLedgers
private

Definition at line 368 of file LedgerMaster.h.

◆ mAdvanceThread

bool ripple::LedgerMaster::mAdvanceThread {false}
private

Definition at line 371 of file LedgerMaster.h.

◆ mAdvanceWork

bool ripple::LedgerMaster::mAdvanceWork {false}
private

Definition at line 374 of file LedgerMaster.h.

◆ mFillInProgress

int ripple::LedgerMaster::mFillInProgress {0}
private

Definition at line 375 of file LedgerMaster.h.

◆ mPathFindThread

int ripple::LedgerMaster::mPathFindThread {0}
private

Definition at line 377 of file LedgerMaster.h.

◆ mPathFindNewRequest

bool ripple::LedgerMaster::mPathFindNewRequest {false}
private

Definition at line 378 of file LedgerMaster.h.

◆ mGotFetchPackThread

std::atomic_flag ripple::LedgerMaster::mGotFetchPackThread
private
Initial value:
=
ATOMIC_FLAG_INIT

Definition at line 380 of file LedgerMaster.h.

◆ mPubLedgerClose

std::atomic<std::uint32_t> ripple::LedgerMaster::mPubLedgerClose {0}
private

Definition at line 383 of file LedgerMaster.h.

◆ mPubLedgerSeq

std::atomic<LedgerIndex> ripple::LedgerMaster::mPubLedgerSeq {0}
private

Definition at line 384 of file LedgerMaster.h.

◆ mValidLedgerSign

std::atomic<std::uint32_t> ripple::LedgerMaster::mValidLedgerSign {0}
private

Definition at line 385 of file LedgerMaster.h.

◆ mValidLedgerSeq

std::atomic<LedgerIndex> ripple::LedgerMaster::mValidLedgerSeq {0}
private

Definition at line 386 of file LedgerMaster.h.

◆ mBuildingLedgerSeq

std::atomic<LedgerIndex> ripple::LedgerMaster::mBuildingLedgerSeq {0}
private

Definition at line 387 of file LedgerMaster.h.

◆ standalone_

const bool ripple::LedgerMaster::standalone_
private

Definition at line 390 of file LedgerMaster.h.

◆ fetch_depth_

const std::uint32_t ripple::LedgerMaster::fetch_depth_
private

Definition at line 393 of file LedgerMaster.h.

◆ ledger_history_

const std::uint32_t ripple::LedgerMaster::ledger_history_
private

Definition at line 396 of file LedgerMaster.h.

◆ ledger_fetch_size_

const std::uint32_t ripple::LedgerMaster::ledger_fetch_size_
private

Definition at line 398 of file LedgerMaster.h.

◆ fetch_packs_

TaggedCache<uint256, Blob> ripple::LedgerMaster::fetch_packs_
private

Definition at line 400 of file LedgerMaster.h.

◆ fetch_seq_

std::uint32_t ripple::LedgerMaster::fetch_seq_ {0}
private

Definition at line 402 of file LedgerMaster.h.

◆ max_ledger_difference_

const LedgerIndex ripple::LedgerMaster::max_ledger_difference_ {1000000}
private

Definition at line 406 of file LedgerMaster.h.

◆ upgradeWarningPrevTime_

TimeKeeper::time_point ripple::LedgerMaster::upgradeWarningPrevTime_ {}
private

Definition at line 409 of file LedgerMaster.h.

◆ m_stats

Stats ripple::LedgerMaster::m_stats
private

Definition at line 431 of file LedgerMaster.h.