Speed up path finding by about 35%.

This commit is contained in:
JoelKatz
2013-03-04 18:57:44 -08:00
parent b8fdb3b659
commit ce401dffb6
7 changed files with 22 additions and 13 deletions

View File

@@ -194,7 +194,8 @@ SHAMapTreeNode* SHAMap::walkToPointer(const uint256& id)
{
int branch = inNode->selectBranch(id);
const uint256& nextHash = inNode->getChildHash(branch);
if (nextHash.isZero()) return NULL;
if (nextHash.isZero())
return NULL;
inNode = getNodePointer(inNode->getChildNodeID(branch), nextHash);
assert(inNode);
}