diff --git a/src/SHAMap.cpp b/src/SHAMap.cpp index 45425efcc..a307d2943 100644 --- a/src/SHAMap.cpp +++ b/src/SHAMap.cpp @@ -140,7 +140,7 @@ SHAMapTreeNode::pointer SHAMap::getNode(const SHAMapNode& id, const uint256& has void SHAMap::returnNode(SHAMapTreeNode::pointer& node, bool modify) { // make sure the node is suitable for the intended operation (copy on write) assert(node->isValid()); - if (node && modify && (node->getSeq()!=mSeq)) + if (node && modify && (node->getSeq() != mSeq)) { #ifdef DEBUG std::cerr << "returnNode COW" << std::endl; @@ -516,17 +516,17 @@ bool SHAMap::addItem(const SHAMapItem& i, bool isTransaction) bool SHAMap::updateGiveItem(SHAMapItem::pointer item, bool isTransaction) { // can't change the tag but can change the hash - uint256 tag=item->getTag(); + uint256 tag = item->getTag(); boost::recursive_mutex::scoped_lock sl(mLock); std::stack stack = getStack(tag, true); if (stack.empty()) throw SHAMapException(MissingNode); - SHAMapTreeNode::pointer node=stack.top(); + SHAMapTreeNode::pointer node = stack.top(); stack.pop(); - if (!node->isLeaf() || (node->peekItem()->getTag() != tag) ) + if (!node->isLeaf() || (node->peekItem()->getTag() != tag)) { assert(false); return false;