mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
Reduce memory consumption while fetching.
This commit is contained in:
@@ -92,7 +92,11 @@ void SHAMap::getMissingNodes (std::vector<SHAMapNode>& nodeIDs, std::vector<uint
|
||||
{
|
||||
node->setFullBelow ();
|
||||
if (mType == smtSTATE)
|
||||
{
|
||||
fullBelowCache.add (node->getNodeHash ());
|
||||
if (getConfig().NODE_SIZE <= 3)
|
||||
dropBelow(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,7 +163,11 @@ std::vector<uint256> SHAMap::getNeededHashes (int max, SHAMapSyncFilter* filter)
|
||||
{
|
||||
node->setFullBelow ();
|
||||
if (mType == smtSTATE)
|
||||
{
|
||||
fullBelowCache.add (node->getNodeHash ());
|
||||
if (getConfig().NODE_SIZE <= 3)
|
||||
dropBelow(node);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user