mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Ledger synch work.
This commit is contained in:
22
Ledger.cpp
22
Ledger.cpp
@@ -544,3 +544,25 @@ Ledger::pointer Ledger::switchPreviousLedger(Ledger::pointer oldPrevious, Ledger
|
||||
|
||||
return Ledger::pointer(newLedger);
|
||||
}
|
||||
|
||||
void Ledger::setAcquiring(void)
|
||||
{
|
||||
if(!mTransactionMap || !mAccountStateMap) throw SHAMapException(InvalidMap);
|
||||
mTransactionMap->setSynching();
|
||||
mAccountStateMap->setSynching();
|
||||
}
|
||||
|
||||
bool Ledger::isAcquiring(void)
|
||||
{
|
||||
return isAcquiringTx() || isAcquiringAS();
|
||||
}
|
||||
|
||||
bool Ledger::isAcquiringTx(void)
|
||||
{
|
||||
return mTransactionMap->isSynching();
|
||||
}
|
||||
|
||||
bool Ledger::isAcquiringAS(void)
|
||||
{
|
||||
return mAccountStateMap->isSynching();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user