Some extra debug logging.

This commit is contained in:
JoelKatz
2013-03-16 16:41:13 -07:00
parent b9456c8fd7
commit 47ffc5ff12

View File

@@ -421,7 +421,13 @@ void Ledger::saveAcceptedLedger(Job&, bool fromConsensus)
assert(false);
}
assert (getAccountHash() == mAccountStateMap->getHash());
if (getAccountHash() != mAccountStateMap->getHash())
{
cLog(lsFATAL) << "sAL: " << getAccountHash() << " != " << mAccountStateMap->getHash();
cLog(lsFATAL) << "saveAcceptedLedger: seq=" << mLedgerSeq << ", fromcons=" << fromConsensus;
assert(false);
}
assert (getTransHash() == mTransactionMap->getHash());
// Save the ledger header in the hashed object store