Some asserts to help track down a bug (that seems impossible) that Jed reported.

This commit is contained in:
JoelKatz
2012-08-13 02:19:18 -07:00
parent 5b431ea4f6
commit e0aa5f287f
2 changed files with 5 additions and 1 deletions

View File

@@ -42,6 +42,8 @@ void LedgerMaster::pushLedger(Ledger::pointer newLCL, Ledger::pointer newOL)
if (newLCL->isAccepted())
{
assert(newLCL->isClosed());
assert(newLCL->isImmutable());
mLedgerHistory.addAcceptedLedger(newLCL);
Log(lsINFO) << "StashAccepted: " << newLCL->getHash().GetHex();
}