Should return 'false', not throw.

This commit is contained in:
JoelKatz
2013-03-31 23:56:37 -07:00
parent 23183c23bd
commit f6b9e0ca80

View File

@@ -582,7 +582,7 @@ bool SHAMap::addGiveItem(SHAMapItem::ref item, bool isTransaction, bool hasMeta)
stack.pop();
if (node->isLeaf() && (node->peekItem()->getTag() == tag))
throw std::runtime_error("addGiveItem ends on leaf with same tag");
return false;
uint256 prevHash;
returnNode(node, true);