mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix a huge delay with --net
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user