mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix the bug Jed reported where our second closed ledger has a close time in the past which
crashes the CLC timing code.
This commit is contained in:
@@ -71,7 +71,7 @@ Ledger::Ledger(bool dummy, Ledger& prevLedger) :
|
||||
prevLedger.getCloseAgree(), mLedgerSeq);
|
||||
if (prevLedger.mCloseTime == 0)
|
||||
{
|
||||
mCloseTime = theApp->getOPs().getCloseTimeNC();
|
||||
mCloseTime = theApp->getOPs().getCloseTimeNC() - mCloseResolution;
|
||||
mCloseTime -= (mCloseTime % mCloseResolution);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user