mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Under a certain rare combination of circumstances a ledger may not get added
to our chain of fully-validated ledgers. Essentially, if we have the ledger for some other reason, we won't "acquire" it, so behavior triggered only by acquiring the ledger will not happen. This issue would be persistent.
This commit is contained in:
@@ -274,8 +274,9 @@ void LedgerMaster::missingAcquireComplete(LedgerAcquire::pointer acq)
|
||||
|
||||
if (acq->isComplete())
|
||||
{
|
||||
acq->getLedger()->setAccepted();
|
||||
setFullLedger(acq->getLedger());
|
||||
acq->getLedger()->pendSave(false);
|
||||
mLedgerHistory.addAcceptedLedger(acq->getLedger(), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user