rippled
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
ripple::LedgerMaster Class Reference

#include <LedgerMaster.h>

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.
 
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.
 
std::shared_ptr< STTx const > popAcctTransaction (std::shared_ptr< STTx const > const &tx)
 Get the next transaction held for a particular account if any.
 
uint256 getHashBySeq (std::uint32_t index)
 Get a ledger's hash by sequence number using the cache.
 
std::optional< LedgerHashwalkHashBySeq (std::uint32_t index, InboundLedger::Reason reason)
 Walk to a ledger's hash using the skip list.
 
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.
 
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 isValidated (ReadView const &ledger)
 
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.
 
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.
 
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.
 
std::optional< LedgerIndexminSqlSeq ()
 
std::optional< uint256txnIdFromIndex (uint32_t ledgerSeq, uint32_t txnIndex)
 

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.
 
std::optional< LedgerHashgetLedgerHashForHistory (LedgerIndex index, InboundLedger::Reason reason)
 
std::size_t getNeededValidations ()
 Determines how many validations are needed to fully validate a ledger.
 
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 (char const *name, std::unique_lock< std::recursive_mutex > &)
 A thread needs to be dispatched to handle pathfinding work of some kind.
 
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::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}
 
bool const standalone_
 
std::uint32_t const fetch_depth_
 
std::uint32_t const ledger_history_
 
std::uint32_t const ledger_fetch_size_
 
TaggedCache< uint256, Blobfetch_packs_
 
std::uint32_t fetch_seq_ {0}
 
LedgerIndex const max_ledger_difference_ {1000000}
 
TimeKeeper::time_point upgradeWarningPrevTime_ {}
 
Stats m_stats
 

Detailed Description

Definition at line 51 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 99 of file LedgerMaster.cpp.

◆ ~LedgerMaster()

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

Member Function Documentation

◆ getCurrentLedgerIndex()

LedgerIndex ripple::LedgerMaster::getCurrentLedgerIndex ( )

Definition at line 123 of file LedgerMaster.cpp.

◆ getValidLedgerIndex()

LedgerIndex ripple::LedgerMaster::getValidLedgerIndex ( )

Definition at line 129 of file LedgerMaster.cpp.

◆ isCompatible()

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

Definition at line 135 of file LedgerMaster.cpp.

◆ peekMutex()

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

Definition at line 1552 of file LedgerMaster.cpp.

◆ getCurrentLedger()

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

Definition at line 1559 of file LedgerMaster.cpp.

◆ getClosedLedger()

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

Definition at line 79 of file LedgerMaster.h.

◆ getValidatedLedger()

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

Definition at line 1565 of file LedgerMaster.cpp.

◆ getValidatedRules()

Rules ripple::LedgerMaster::getValidatedRules ( )

Definition at line 1571 of file LedgerMaster.cpp.

◆ getPublishedLedger()

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

Definition at line 1586 of file LedgerMaster.cpp.

◆ getPublishedLedgerAge()

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

Definition at line 166 of file LedgerMaster.cpp.

◆ getValidatedLedgerAge()

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

Definition at line 190 of file LedgerMaster.cpp.

◆ isCaughtUp()

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

Definition at line 215 of file LedgerMaster.cpp.

◆ getEarliestFetch()

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

Definition at line 615 of file LedgerMaster.cpp.

◆ storeLedger()

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

Definition at line 442 of file LedgerMaster.cpp.

◆ setFullLedger()

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

Definition at line 804 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 342 of file LedgerMaster.cpp.

◆ switchLCL()

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

Definition at line 410 of file LedgerMaster.cpp.

◆ failedSave()

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

Definition at line 867 of file LedgerMaster.cpp.

◆ getCompleteLedgers()

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

Definition at line 1593 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 455 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 471 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 1630 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 1641 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 1652 of file LedgerMaster.cpp.

◆ getLedgerBySeq()

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

Definition at line 1708 of file LedgerMaster.cpp.

◆ getLedgerByHash()

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

Definition at line 1744 of file LedgerMaster.cpp.

◆ setLedgerRangePresent()

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

Definition at line 1757 of file LedgerMaster.cpp.

◆ getCloseTimeBySeq()

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

Definition at line 1600 of file LedgerMaster.cpp.

◆ getCloseTimeByHash()

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

Definition at line 1608 of file LedgerMaster.cpp.

◆ addHeldTransaction()

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

Definition at line 331 of file LedgerMaster.cpp.

◆ fixMismatch()

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

Definition at line 749 of file LedgerMaster.cpp.

◆ haveLedger()

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

Definition at line 485 of file LedgerMaster.cpp.

◆ clearLedger()

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

Definition at line 492 of file LedgerMaster.cpp.

◆ isValidated()

bool ripple::LedgerMaster::isValidated ( ReadView const &  ledger)

Definition at line 499 of file LedgerMaster.cpp.

◆ getValidatedRange()

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

Definition at line 574 of file LedgerMaster.cpp.

◆ getFullValidatedRange()

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

Definition at line 547 of file LedgerMaster.cpp.

◆ sweep()

void ripple::LedgerMaster::sweep ( )

Definition at line 1764 of file LedgerMaster.cpp.

◆ getCacheHitRate()

float ripple::LedgerMaster::getCacheHitRate ( )

Definition at line 1771 of file LedgerMaster.cpp.

◆ checkAccept() [1/2]

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

Definition at line 937 of file LedgerMaster.cpp.

◆ checkAccept() [2/2]

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

Definition at line 876 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 1085 of file LedgerMaster.cpp.

◆ setBuildingLedger()

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

Definition at line 479 of file LedgerMaster.cpp.

◆ tryAdvance()

void ripple::LedgerMaster::tryAdvance ( )

Definition at line 1357 of file LedgerMaster.cpp.

◆ newPathRequest()

bool ripple::LedgerMaster::newPathRequest ( )

Definition at line 1500 of file LedgerMaster.cpp.

◆ isNewPathRequest()

bool ripple::LedgerMaster::isNewPathRequest ( )

Definition at line 1508 of file LedgerMaster.cpp.

◆ newOrderBookDB()

bool ripple::LedgerMaster::newOrderBookDB ( )

Definition at line 1519 of file LedgerMaster.cpp.

◆ fixIndex()

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

Definition at line 436 of file LedgerMaster.cpp.

◆ clearPriorLedgers()

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

Definition at line 1777 of file LedgerMaster.cpp.

◆ clearLedgerCachePrior()

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

Definition at line 1785 of file LedgerMaster.cpp.

◆ takeReplay()

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

Definition at line 1791 of file LedgerMaster.cpp.

◆ releaseReplay()

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

Definition at line 1797 of file LedgerMaster.cpp.

◆ gotFetchPack()

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

Definition at line 2028 of file LedgerMaster.cpp.

◆ addFetchPack()

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

Definition at line 2009 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 2015 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 2098 of file LedgerMaster.cpp.

◆ getFetchPackCacheSize()

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

Definition at line 2230 of file LedgerMaster.cpp.

◆ haveValidated()

bool ripple::LedgerMaster::haveValidated ( )

Whether we have ever fully validated a ledger.

Definition at line 265 of file LedgerMaster.h.

◆ minSqlSeq()

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

Definition at line 2237 of file LedgerMaster.cpp.

◆ txnIdFromIndex()

std::optional< uint256 > ripple::LedgerMaster::txnIdFromIndex ( uint32_t  ledgerSeq,
uint32_t  txnIndex 
)

Definition at line 2243 of file LedgerMaster.cpp.

◆ setValidLedger()

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

Definition at line 240 of file LedgerMaster.cpp.

◆ setPubLedger()

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

Definition at line 323 of file LedgerMaster.cpp.

◆ tryFill()

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

Definition at line 629 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 701 of file LedgerMaster.cpp.

◆ getLedgerHashForHistory()

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

Definition at line 1186 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 931 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 1803 of file LedgerMaster.cpp.

◆ doAdvance()

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

Definition at line 1918 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 1208 of file LedgerMaster.cpp.

◆ updatePaths()

void ripple::LedgerMaster::updatePaths ( )
private

Definition at line 1391 of file LedgerMaster.cpp.

◆ newPFWork()

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

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

Definition at line 1530 of file LedgerMaster.cpp.

◆ collect_metrics()

void ripple::LedgerMaster::collect_metrics ( )
private

Definition at line 415 of file LedgerMaster.h.

Member Data Documentation

◆ app_

Application& ripple::LedgerMaster::app_
private

Definition at line 317 of file LedgerMaster.h.

◆ m_journal

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

Definition at line 318 of file LedgerMaster.h.

◆ m_mutex

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

Definition at line 320 of file LedgerMaster.h.

◆ mClosedLedger

LedgerHolder ripple::LedgerMaster::mClosedLedger
private

Definition at line 323 of file LedgerMaster.h.

◆ mValidLedger

LedgerHolder ripple::LedgerMaster::mValidLedger
private

Definition at line 326 of file LedgerMaster.h.

◆ mPubLedger

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

Definition at line 329 of file LedgerMaster.h.

◆ mPathLedger

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

Definition at line 332 of file LedgerMaster.h.

◆ mHistLedger

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

Definition at line 335 of file LedgerMaster.h.

◆ mLastValidLedger

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

Definition at line 338 of file LedgerMaster.h.

◆ mLedgerHistory

LedgerHistory ripple::LedgerMaster::mLedgerHistory
private

Definition at line 340 of file LedgerMaster.h.

◆ mHeldTransactions

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

Definition at line 342 of file LedgerMaster.h.

◆ replayData

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

Definition at line 345 of file LedgerMaster.h.

◆ mCompleteLock

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

Definition at line 347 of file LedgerMaster.h.

◆ mCompleteLedgers

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

Definition at line 348 of file LedgerMaster.h.

◆ mAdvanceThread

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

Definition at line 351 of file LedgerMaster.h.

◆ mAdvanceWork

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

Definition at line 354 of file LedgerMaster.h.

◆ mFillInProgress

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

Definition at line 355 of file LedgerMaster.h.

◆ mPathFindThread

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

Definition at line 357 of file LedgerMaster.h.

◆ mPathFindNewRequest

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

Definition at line 358 of file LedgerMaster.h.

◆ mGotFetchPackThread

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

Definition at line 360 of file LedgerMaster.h.

◆ mPubLedgerClose

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

Definition at line 363 of file LedgerMaster.h.

◆ mPubLedgerSeq

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

Definition at line 364 of file LedgerMaster.h.

◆ mValidLedgerSign

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

Definition at line 365 of file LedgerMaster.h.

◆ mValidLedgerSeq

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

Definition at line 366 of file LedgerMaster.h.

◆ mBuildingLedgerSeq

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

Definition at line 367 of file LedgerMaster.h.

◆ standalone_

bool const ripple::LedgerMaster::standalone_
private

Definition at line 370 of file LedgerMaster.h.

◆ fetch_depth_

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

Definition at line 373 of file LedgerMaster.h.

◆ ledger_history_

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

Definition at line 376 of file LedgerMaster.h.

◆ ledger_fetch_size_

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

Definition at line 378 of file LedgerMaster.h.

◆ fetch_packs_

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

Definition at line 380 of file LedgerMaster.h.

◆ fetch_seq_

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

Definition at line 382 of file LedgerMaster.h.

◆ max_ledger_difference_

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

Definition at line 386 of file LedgerMaster.h.

◆ upgradeWarningPrevTime_

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

Definition at line 389 of file LedgerMaster.h.

◆ m_stats

Stats ripple::LedgerMaster::m_stats
private

Definition at line 411 of file LedgerMaster.h.