More debug.

This commit is contained in:
JoelKatz
2013-01-08 14:10:49 -08:00
parent 120e758f01
commit 8e5ce2dd4c
2 changed files with 13 additions and 1 deletions

View File

@@ -426,7 +426,12 @@ void LedgerMaster::tryPublish()
else
{
hash = mValidLedger->getLedgerHash(seq);
assert(hash.isNonZero());
if (hash.isZero())
{
cLog(lsFATAL) << "Ledger: " << mValidLedger->getLedgerSeq() << " does not have hash for " <<
seq;
assert(false);
}
ledger = mLedgerHistory.getLedgerByHash(hash);
}