mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a bug that can cause us to fail to realize we're in sync.
This commit is contained in:
@@ -290,7 +290,10 @@ void LedgerConsensus::handleLCL(const uint256& lclHash)
|
||||
{ // we need to switch the ledger we're working from
|
||||
Ledger::pointer newLCL = theApp->getLedgerMaster().getLedgerByHash(lclHash);
|
||||
if (newLCL)
|
||||
{
|
||||
mPreviousLedger = newLCL;
|
||||
mPrevLedgerHash = newLCL->getHash();
|
||||
}
|
||||
else if (!mAcquiringLedger || (mAcquiringLedger->getHash() != mPrevLedgerHash))
|
||||
{ // need to start acquiring the correct consensus LCL
|
||||
cLog(lsWARNING) << "Need consensus ledger " << mPrevLedgerHash;
|
||||
|
||||
Reference in New Issue
Block a user