mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-22 12:05:53 +00:00
Improve ledger performance by making sure we properly track the new LCL.
This commit is contained in:
@@ -1268,6 +1268,7 @@ void LedgerConsensus::accept (SHAMap::ref set, LoadEvent::pointer)
|
|||||||
newLCL->setAccepted (closeTime, mCloseResolution, closeTimeCorrect);
|
newLCL->setAccepted (closeTime, mCloseResolution, closeTimeCorrect);
|
||||||
newLCL->updateHash ();
|
newLCL->updateHash ();
|
||||||
newLCL->setImmutable ();
|
newLCL->setImmutable ();
|
||||||
|
getApp().getLedgerMaster().storeLedger(newLCL);
|
||||||
|
|
||||||
WriteLog (lsDEBUG, LedgerConsensus) << "Report: NewL = " << newLCL->getHash () << ":" << newLCL->getLedgerSeq ();
|
WriteLog (lsDEBUG, LedgerConsensus) << "Report: NewL = " << newLCL->getHash () << ":" << newLCL->getLedgerSeq ();
|
||||||
uint256 newLCLHash = newLCL->getHash ();
|
uint256 newLCLHash = newLCL->getHash ();
|
||||||
|
|||||||
Reference in New Issue
Block a user