mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 15:05:53 +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)
|
||||
{
|
||||
return true; // XXX Needs implementation
|
||||
|
||||
@@ -95,6 +95,7 @@ public:
|
||||
void entryCreate(SLE::ref); // This entry will be created
|
||||
void entryDelete(SLE::ref); // This entry will be deleted
|
||||
void entryModify(SLE::ref); // This entry will be modified
|
||||
bool hasChanges(); // True if LES has any changes
|
||||
|
||||
// higher-level ledger functions
|
||||
SLE::pointer entryCreate(LedgerEntryType letType, const uint256& uIndex);
|
||||
|
||||
Reference in New Issue
Block a user