mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add LES::hasChanges which returns true if an LES changes anything.
This commit is contained in:
@@ -230,6 +230,14 @@ void LedgerEntrySet::entryDelete(SLE::ref sle)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool LedgerEntrySet::hasChanges()
|
||||||
|
{
|
||||||
|
BOOST_FOREACH(u256_LES_pair&, mEntries)
|
||||||
|
if (it.second.mAction != taaCACHED)
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
bool LedgerEntrySet::intersect(const LedgerEntrySet& lesLeft, const LedgerEntrySet& lesRight)
|
bool LedgerEntrySet::intersect(const LedgerEntrySet& lesLeft, const LedgerEntrySet& lesRight)
|
||||||
{
|
{
|
||||||
return true; // XXX Needs implementation
|
return true; // XXX Needs implementation
|
||||||
|
|||||||
@@ -95,6 +95,7 @@ public:
|
|||||||
void entryCreate(SLE::ref); // This entry will be created
|
void entryCreate(SLE::ref); // This entry will be created
|
||||||
void entryDelete(SLE::ref); // This entry will be deleted
|
void entryDelete(SLE::ref); // This entry will be deleted
|
||||||
void entryModify(SLE::ref); // This entry will be modified
|
void entryModify(SLE::ref); // This entry will be modified
|
||||||
|
bool hasChanges(); // True if LES has any changes
|
||||||
|
|
||||||
// higher-level ledger functions
|
// higher-level ledger functions
|
||||||
SLE::pointer entryCreate(LedgerEntryType letType, const uint256& uIndex);
|
SLE::pointer entryCreate(LedgerEntryType letType, const uint256& uIndex);
|
||||||
|
|||||||
Reference in New Issue
Block a user