From 9dea6df56b20d44f05e957eb97e3fe04dd2a9b98 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 14 Jan 2013 18:16:47 -0800 Subject: [PATCH] Tuning. --- src/cpp/ripple/LedgerMaster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/ripple/LedgerMaster.cpp b/src/cpp/ripple/LedgerMaster.cpp index 116bfd313..86e690b2e 100644 --- a/src/cpp/ripple/LedgerMaster.cpp +++ b/src/cpp/ripple/LedgerMaster.cpp @@ -194,7 +194,7 @@ bool LedgerMaster::acquireMissingLedger(Ledger::ref origLedger, const uint256& l theApp->getIOService().post(boost::bind(&LedgerMaster::missingAcquireComplete, this, mMissingLedger)); } - if (theApp->getMasterLedgerAcquire().getFetchCount() < 3) + if (theApp->getMasterLedgerAcquire().getFetchCount() < 4) { int count = 0; typedef std::pair u_pair; @@ -202,7 +202,7 @@ bool LedgerMaster::acquireMissingLedger(Ledger::ref origLedger, const uint256& l std::vector vec = origLedger->getLedgerHashes(); BOOST_REVERSE_FOREACH(const u_pair& it, vec) { - if ((count < 2) && (it.first < ledgerSeq) && + if ((count < 3) && (it.first < ledgerSeq) && !mCompleteLedgers.hasValue(it.first) && !theApp->getMasterLedgerAcquire().find(it.second)) { ++count;