mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Assert on incorrect closed/immutable states.
This commit is contained in:
@@ -2618,11 +2618,13 @@ Json::Value RPCHandler::lookupLedger(Json::Value jvRequest, Ledger::pointer& lpL
|
||||
case LEDGER_CLOSED:
|
||||
lpLedger = theApp->getLedgerMaster().getClosedLedger();
|
||||
iLedgerIndex = lpLedger->getLedgerSeq();
|
||||
assert(lpLedger->isImmutable() && lpLedger->isClosed());
|
||||
break;
|
||||
|
||||
case LEDGER_VALIDATED:
|
||||
lpLedger = mNetOps->getValidatedLedger();
|
||||
iLedgerIndex = lpLedger->getLedgerSeq();
|
||||
assert(lpLedger->isImmutable() && lpLedger->isClosed());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user