mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Some extra debug.
This commit is contained in:
@@ -483,6 +483,10 @@ void LedgerMaster::checkAccept (uint256 const& hash)
|
|||||||
InboundLedger::pointer l = getApp().getInboundLedgers().findCreate(hash, 0, false);
|
InboundLedger::pointer l = getApp().getInboundLedgers().findCreate(hash, 0, false);
|
||||||
if (l->isComplete() && !l->isFailed())
|
if (l->isComplete() && !l->isFailed())
|
||||||
ledger = l->getLedger();
|
ledger = l->getLedger();
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WriteLog (lsDEBUG, LedgerMaster) << "checkAccept triggers acquire " << hash.GetHex();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ledger)
|
if (ledger)
|
||||||
@@ -514,8 +518,12 @@ void LedgerMaster::checkAccept (uint256 const& hash, uint32 seq)
|
|||||||
else if (getApp().getOPs ().isNeedNetworkLedger ())
|
else if (getApp().getOPs ().isNeedNetworkLedger ())
|
||||||
minVal = 1;
|
minVal = 1;
|
||||||
|
|
||||||
if (getApp().getValidations ().getTrustedValidationCount (hash) < minVal) // nothing we can do
|
int tvc = getApp().getValidations().getTrustedValidationCount(hash);
|
||||||
|
if (tvc < minVal) // nothing we can do
|
||||||
|
{
|
||||||
|
WriteLog (lsTRACE, LedgerMaster) << "Only " << tvc << " validations for " << hash;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
WriteLog (lsINFO, LedgerMaster) << "Advancing accepted ledger to " << seq << " with >= " << minVal << " validations";
|
WriteLog (lsINFO, LedgerMaster) << "Advancing accepted ledger to " << seq << " with >= " << minVal << " validations";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user