Fix an assert.

This commit is contained in:
JoelKatz
2013-05-14 18:44:27 -07:00
parent 05b9004966
commit c4345768e7

View File

@@ -115,7 +115,7 @@ LedgerEntryAction LedgerEntrySet::hasEntry(const uint256& index) const
void LedgerEntrySet::entryCache(SLE::ref sle)
{
assert(mLedger);
assert(sle->isMutable() || !mImmutable);
assert(sle->isMutable() || mImmutable); // Don't put an immutable SLE in a mutable LES
std::map<uint256, LedgerEntrySetEntry>::iterator it = mEntries.find(sle->getIndex());
if (it == mEntries.end())
{