mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cosmetic changes.
This commit is contained in:
@@ -476,7 +476,8 @@ bool SHAMap::addGiveItem(SHAMapItem::pointer item, bool isTransaction)
|
|||||||
#ifdef ST_DEBUG
|
#ifdef ST_DEBUG
|
||||||
std::cerr << "need new inner node at " << node->getDepth() << std::endl;
|
std::cerr << "need new inner node at " << node->getDepth() << std::endl;
|
||||||
#endif
|
#endif
|
||||||
SHAMapTreeNode::pointer newNode=boost::make_shared<SHAMapTreeNode>(node->getChildNodeID(b1), mSeq);
|
SHAMapTreeNode::pointer newNode =
|
||||||
|
boost::make_shared<SHAMapTreeNode>(node->getChildNodeID(b1), mSeq);
|
||||||
newNode->makeInner();
|
newNode->makeInner();
|
||||||
if(!mTNByID.insert(std::make_pair(SHAMapNode(*newNode), newNode)).second)
|
if(!mTNByID.insert(std::make_pair(SHAMapNode(*newNode), newNode)).second)
|
||||||
assert(false);
|
assert(false);
|
||||||
@@ -500,9 +501,7 @@ bool SHAMap::addGiveItem(SHAMapItem::pointer item, bool isTransaction)
|
|||||||
node->setChildHash(b2, newNode->getNodeHash());
|
node->setChildHash(b2, newNode->getNodeHash());
|
||||||
}
|
}
|
||||||
|
|
||||||
prevHash = node->getNodeHash();
|
dirtyUp(stack, tag, node->getNodeHash());
|
||||||
assert(prevHash.isNonZero());
|
|
||||||
dirtyUp(stack, tag, prevHash);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user