Improve SHAMapMissingNode

This commit is contained in:
JoelKatz
2012-10-11 02:50:04 -07:00
parent f81a3c623a
commit 30dd46d812
3 changed files with 28 additions and 11 deletions

View File

@@ -53,7 +53,7 @@ void SHAMap::getMissingNodes(std::vector<SHAMapNode>& nodeIDs, std::vector<uint2
{
d = getNode(childID, childHash, false);
}
catch (SHAMapMissingNode& )
catch (SHAMapMissingNode&)
{ // node is not in the map
if (filter != NULL)
{
@@ -269,14 +269,15 @@ bool SHAMap::addKnownNode(const SHAMapNode& node, const std::vector<unsigned cha
if (nextNode->isInner() && !nextNode->isFullBelow())
return true;
}
catch (SHAMapMissingNode)
catch (SHAMapMissingNode&)
{
return true;
}
}
iNode->setFullBelow();
} while (!stack.empty());
if (root->isFullBelow()) clearSynching();
if (root->isFullBelow())
clearSynching();
return true;
}