mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cosmetic changes.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user