mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
Remove the small fetch optimization
In some cases, it significantly increased ledger fetch traffic.
This commit is contained in:
@@ -53,9 +53,6 @@ enum
|
||||
// how many timeouts before we get aggressive
|
||||
,ledgerBecomeAggressiveThreshold = 6
|
||||
|
||||
// How many nodes to consider a fetch "small"
|
||||
,fetchSmallNodes = 32
|
||||
|
||||
// Number of nodes to find initially
|
||||
,missingNodesFind = 256
|
||||
|
||||
@@ -611,11 +608,6 @@ void InboundLedger::trigger (Peer::ptr const& peer, TriggerReason reason)
|
||||
* (tmGL.add_nodeids ()) = id.getRawString ();
|
||||
}
|
||||
|
||||
// If we're not querying for a lot of entries,
|
||||
// query extra deep
|
||||
if (nodeIDs.size() <= fetchSmallNodes)
|
||||
tmGL.set_querydepth (tmGL.querydepth() + 1);
|
||||
|
||||
if (m_journal.trace) m_journal.trace <<
|
||||
"Sending AS node " << nodeIDs.size () <<
|
||||
" request to " << (
|
||||
|
||||
Reference in New Issue
Block a user