From 99e4335f003933aec6da6fce502dbb19b46727ea Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Sun, 29 Sep 2013 23:43:58 -0700 Subject: [PATCH] Improve ledger performance by making sure we properly track the new LCL. --- src/ripple_app/consensus/LedgerConsensus.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ripple_app/consensus/LedgerConsensus.cpp b/src/ripple_app/consensus/LedgerConsensus.cpp index 9f3b76074..11437b4b2 100644 --- a/src/ripple_app/consensus/LedgerConsensus.cpp +++ b/src/ripple_app/consensus/LedgerConsensus.cpp @@ -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 ();