mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a case where we might try too quickly to re-acquire a ledger.
This commit is contained in:
@@ -443,6 +443,12 @@ void LedgerMaster::tryPublish()
|
||||
mPubLedgers.push_back(ledger);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (theApp->getMasterLedgerAcquire().isFailure(hash))
|
||||
{
|
||||
cLog(lsFATAL) << "Unable to acquire a recent validated ledger";
|
||||
}
|
||||
else
|
||||
{
|
||||
LedgerAcquire::pointer acq = theApp->getMasterLedgerAcquire().findCreate(hash);
|
||||
if (!acq->isDone())
|
||||
@@ -460,6 +466,7 @@ void LedgerMaster::tryPublish()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!mPubLedgers.empty() && !mPubThread)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user