mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Missing from previous commit.
This commit is contained in:
@@ -59,7 +59,7 @@ void SHAMap::dirtyUp(const uint256& id)
|
|||||||
SHAMapLeafNode::pointer SHAMap::checkCacheLeaf(const SHAMapNode& iNode)
|
SHAMapLeafNode::pointer SHAMap::checkCacheLeaf(const SHAMapNode& iNode)
|
||||||
{
|
{
|
||||||
assert(iNode.isLeaf());
|
assert(iNode.isLeaf());
|
||||||
std::map<SHAMapNode, SHAMapLeafNode::pointer>::iterator it=mLeafByID.find(iNode);
|
boost::unordered_map<SHAMapNode, SHAMapLeafNode::pointer>::iterator it=mLeafByID.find(iNode);
|
||||||
if(it==mLeafByID.end()) return SHAMapLeafNode::pointer();
|
if(it==mLeafByID.end()) return SHAMapLeafNode::pointer();
|
||||||
return it->second;
|
return it->second;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user