mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Fix a bug that would cause the server to exit the "need network ledger" state prematurely.
This commit is contained in:
@@ -425,8 +425,8 @@ void LedgerConsensus::handleLCL(const uint256& lclHash)
|
|||||||
|
|
||||||
cLog(lsINFO) << "Have the consensus ledger " << mPrevLedgerHash;
|
cLog(lsINFO) << "Have the consensus ledger " << mPrevLedgerHash;
|
||||||
mHaveCorrectLCL = true;
|
mHaveCorrectLCL = true;
|
||||||
mAcquiringLedger.reset();
|
if (mAcquiringLedger->isComplete())
|
||||||
theApp->getOPs().clearNeedNetworkLedger();
|
theApp->getOPs().clearNeedNetworkLedger();
|
||||||
mCloseResolution = ContinuousLedgerTiming::getNextLedgerTimeResolution(
|
mCloseResolution = ContinuousLedgerTiming::getNextLedgerTimeResolution(
|
||||||
mPreviousLedger->getCloseResolution(), mPreviousLedger->getCloseAgree(),
|
mPreviousLedger->getCloseResolution(), mPreviousLedger->getCloseAgree(),
|
||||||
mPreviousLedger->getLedgerSeq() + 1);
|
mPreviousLedger->getLedgerSeq() + 1);
|
||||||
|
|||||||
@@ -770,6 +770,7 @@ bool NetworkOPs::checkLastClosedLedger(const std::vector<Peer::pointer>& peerLis
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
clearNeedNetworkLedger();
|
||||||
consensus = mAcquiringLedger->getLedger();
|
consensus = mAcquiringLedger->getLedger();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user