mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Add 'walkLedger' function.
This commit is contained in:
@@ -957,6 +957,12 @@ uint256 Ledger::getRippleStateIndex(const NewcoinAddress& naA, const NewcoinAddr
|
||||
return s.getSHA512Half();
|
||||
}
|
||||
|
||||
|
||||
bool Ledger::walkLedger()
|
||||
{
|
||||
std::vector<SHAMapMissingNode> missingNodes;
|
||||
mAccountStateMap->walkMap(missingNodes, 1);
|
||||
mTransactionMap->walkMap(missingNodes, 1);
|
||||
return missingNodes.empty();
|
||||
}
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
@@ -280,6 +280,8 @@ public:
|
||||
|
||||
void addJson(Json::Value&, int options);
|
||||
|
||||
bool walkLedger();
|
||||
|
||||
static bool unitTest();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user