Missing from previous commit.

This commit is contained in:
JoelKatz
2012-02-02 16:14:27 -08:00
parent fca8d4f8e9
commit 41ce5fa7f9

View File

@@ -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;
} }