diff --git a/src/cpp/ripple/Ledger.cpp b/src/cpp/ripple/Ledger.cpp index 2d689156e..ddb4bc441 100644 --- a/src/cpp/ripple/Ledger.cpp +++ b/src/cpp/ripple/Ledger.cpp @@ -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