Some cleanups.

This commit is contained in:
JoelKatz
2013-04-04 20:32:11 -07:00
parent f37737edd3
commit a56d284e4d
2 changed files with 50 additions and 59 deletions

View File

@@ -122,11 +122,10 @@ std::vector<uint256> SHAMap::getNeededHashes(int max)
int branch = (base + ii) % 16;
if (!node->isEmptyBranch(branch))
{
SHAMapNode childID = node->getChildNodeID(branch);
const uint256& childHash = node->getChildHash(branch);
try
{
SHAMapTreeNode* d = getNodePointer(childID, childHash);
SHAMapTreeNode* d = getNodePointer(node->getChildNodeID(branch), childHash);
assert(d);
if (d->isInner() && !d->isFullBelow())
{