mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cleanups.
This commit is contained in:
@@ -600,6 +600,8 @@ void LedgerMaster::advanceThread()
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
WriteLog (lsTRACE, LedgerMaster) << "Not fetching history";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -690,8 +692,7 @@ std::list<Ledger::pointer> LedgerMaster::findNewLedgersToPublish()
|
||||
WriteLog (lsWARNING, LedgerMaster) << "Failed to acquire a published ledger";
|
||||
getApp().getInboundLedgers().dropLedger(hash);
|
||||
acq = getApp().getInboundLedgers().findCreate(hash, seq);
|
||||
nothing ();
|
||||
if (acq->isDone())
|
||||
if (acq->isComplete() && !acq->isFailed())
|
||||
ledger = acq->getLedger();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -817,6 +817,9 @@ Json::Value InboundLedger::getJson (int)
|
||||
if (mFailed)
|
||||
ret["failed"] = true;
|
||||
|
||||
if (!mComplete && !mFailed)
|
||||
ret["peers"] = static_cast<int>(mPeers.size());
|
||||
|
||||
ret["have_base"] = mHaveBase;
|
||||
ret["have_state"] = mHaveState;
|
||||
ret["have_transactions"] = mHaveTransactions;
|
||||
|
||||
Reference in New Issue
Block a user