Some extra debug.

This commit is contained in:
JoelKatz
2013-08-18 20:42:59 -07:00
parent 55af90fb68
commit 4e19c7cda1

View File

@@ -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";