Cosmetic changes.

This commit is contained in:
JoelKatz
2012-05-15 18:13:59 -07:00
parent 169da7d5e8
commit 4ad3532037

View File

@@ -436,10 +436,7 @@ bool SHAMap::addGiveItem(SHAMapItem::pointer item, bool isTransaction)
stack.pop();
if (node->isLeaf() && (node->peekItem()->getTag() == tag))
{
std::cerr << "addGiveItem ends on leaf with same tag" << std::endl;
return false;
}
throw std::runtime_error("addGiveItem ends on leaf with same tag");
uint256 prevHash;
returnNode(node, true);
@@ -534,7 +531,7 @@ bool SHAMap::updateGiveItem(SHAMapItem::pointer item, bool isTransaction)
returnNode(node, true);
if (!node->setItem(item, isTransaction ? SHAMapTreeNode::tnTRANSACTION : SHAMapTreeNode::tnACCOUNT_STATE))
return true;
return false;
dirtyUp(stack, tag, node->getNodeHash());
return true;