diff --git a/src/ripple/app/ledger/impl/LedgerMaster.cpp b/src/ripple/app/ledger/impl/LedgerMaster.cpp index 2b16d24ebb..b250fe49ee 100644 --- a/src/ripple/app/ledger/impl/LedgerMaster.cpp +++ b/src/ripple/app/ledger/impl/LedgerMaster.cpp @@ -1044,7 +1044,7 @@ LedgerMaster::findNewLedgersToPublish () } // Can we try to acquire the ledger we need? - if (! ledger && (++acqCount < 4)) + if (! ledger && (++acqCount < ledger_fetch_size_)) ledger = app_.getInboundLedgers ().acquire( *hash, seq, InboundLedger::fcGENERIC); diff --git a/src/ripple/core/impl/Config.cpp b/src/ripple/core/impl/Config.cpp index 4effca768e..2deebae6f6 100644 --- a/src/ripple/core/impl/Config.cpp +++ b/src/ripple/core/impl/Config.cpp @@ -542,7 +542,7 @@ int Config::getSize (SizedItemName item) const { siSweepInterval, { 10, 30, 60, 90, 120 } }, - { siLedgerFetch, { 2, 2, 3, 3, 3 } }, + { siLedgerFetch, { 2, 3, 5, 5, 8 } }, { siNodeCacheSize, { 16384, 32768, 131072, 262144, 524288 } }, { siNodeCacheAge, { 60, 90, 120, 900, 1800 } }, @@ -556,9 +556,9 @@ int Config::getSize (SizedItemName item) const { siLedgerSize, { 32, 128, 256, 384, 768 } }, { siLedgerAge, { 30, 90, 180, 240, 900 } }, - { siHashNodeDBCache, { 4, 12, 24, 64, 128 } }, - { siTxnDBCache, { 4, 12, 24, 64, 128 } }, - { siLgrDBCache, { 4, 8, 16, 32, 128 } }, + { siHashNodeDBCache, { 4, 12, 24, 64, 128 } }, + { siTxnDBCache, { 4, 12, 24, 64, 128 } }, + { siLgrDBCache, { 4, 8, 16, 32, 128 } }, }; for (int i = 0; i < (sizeof (sizeTable) / sizeof (SizedItem)); ++i)