mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Reduce exceptions during syncing.
This commit is contained in:
@@ -327,11 +327,8 @@ SHAMapAddNode SHAMap::addKnownNode (const SHAMapNode& node, Blob const& rawNode,
|
||||
if (fullBelowCache.isPresent (iNode->getChildHash (branch)))
|
||||
return SHAMapAddNode::okay ();
|
||||
|
||||
try
|
||||
{
|
||||
iNode = getNodePointer (iNode->getChildNodeID (branch), iNode->getChildHash (branch), filter);
|
||||
}
|
||||
catch (SHAMapMissingNode&)
|
||||
SHAMapTreeNode *nextNode = getNodePointerNT (iNode->getChildNodeID (branch), iNode->getChildHash (branch), filter);
|
||||
if (!nextNode)
|
||||
{
|
||||
if (iNode->getDepth () != (node.getDepth () - 1))
|
||||
{
|
||||
@@ -361,6 +358,7 @@ SHAMapAddNode SHAMap::addKnownNode (const SHAMapNode& node, Blob const& rawNode,
|
||||
mTNByID[node] = newNode;
|
||||
return SHAMapAddNode::useful ();
|
||||
}
|
||||
iNode = nextNode;
|
||||
}
|
||||
|
||||
WriteLog (lsTRACE, SHAMap) << "got node, already had it (late)";
|
||||
|
||||
Reference in New Issue
Block a user