Okay to put immutable SLE in immutable LES.

This commit is contained in:
JoelKatz
2013-05-14 18:38:07 -07:00
parent 696ffe4b87
commit 417143a25e

View File

@@ -115,7 +115,7 @@ LedgerEntryAction LedgerEntrySet::hasEntry(const uint256& index) const
void LedgerEntrySet::entryCache(SLE::ref sle)
{
assert(mLedger);
assert(sle->isMutable());
assert(sle->isMutable() || !mImmutable);
std::map<uint256, LedgerEntrySetEntry>::iterator it = mEntries.find(sle->getIndex());
if (it == mEntries.end())
{