Minor fetch pack generation bug could cause extra nodes to be sent.

This commit is contained in:
JoelKatz
2013-07-19 12:29:05 -07:00
parent 9d50bd8d27
commit cb567f9884

View File

@@ -434,7 +434,8 @@ bool SHAMap::hasInnerNode (const SHAMapNode& nodeID, uint256 const& nodeHash)
{
boost::unordered_map<SHAMapNode, SHAMapTreeNode::pointer>::iterator it = mTNByID.find (nodeID);
if (it != mTNByID.end())
return it->second->getNodeHash() == nodeHash;
if (it->second->getNodeHash() == nodeHash)
return true;
SHAMapTreeNode* node = root.get ();