Fix a huge delay with --net

This commit is contained in:
JoelKatz
2013-01-04 01:10:13 -08:00
parent 4e5979564e
commit 8ace87066a

View File

@@ -369,9 +369,7 @@ void LedgerMaster::checkPublish(const uint256& hash, uint32 seq)
cLog(lsTRACE) << "Sweeping for ledgers to publish: minval=" << minVal;
// See if any later ledgers have at least the minimum number of validations
for (seq = mFinalizedLedger->getLedgerSeq(); seq > mLastValidateSeq; --seq)
{
// See if this ledger have at least the minimum number of validations
Ledger::pointer ledger = mLedgerHistory.getLedgerBySeq(seq);
if (ledger && (theApp->getValidations().getTrustedValidationCount(ledger->getHash()) >= minVal))
{ // this ledger (and any priors) can be published
@@ -398,7 +396,6 @@ void LedgerMaster::checkPublish(const uint256& hash, uint32 seq)
}
}
}
}
if (!mPubThread)
{