Improve ledger performance by making sure we properly track the new LCL.

This commit is contained in:
JoelKatz
2013-09-29 23:43:58 -07:00
parent ea1a5a77c5
commit 99e4335f00

View File

@@ -1268,6 +1268,7 @@ void LedgerConsensus::accept (SHAMap::ref set, LoadEvent::pointer)
newLCL->setAccepted (closeTime, mCloseResolution, closeTimeCorrect);
newLCL->updateHash ();
newLCL->setImmutable ();
getApp().getLedgerMaster().storeLedger(newLCL);
WriteLog (lsDEBUG, LedgerConsensus) << "Report: NewL = " << newLCL->getHash () << ":" << newLCL->getLedgerSeq ();
uint256 newLCLHash = newLCL->getHash ();