mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +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
|
||||
|
||||
Reference in New Issue
Block a user