Rather than working around using SHAMap::hasItem so much, let's just make it efficient.

This commit is contained in:
JoelKatz
2012-05-23 19:18:59 -07:00
parent 07e353d8a2
commit 13a9e774c6
2 changed files with 38 additions and 15 deletions

View File

@@ -244,6 +244,7 @@ protected:
SHAMapTreeNode::pointer getNode(const SHAMapNode& id);
SHAMapTreeNode::pointer getNode(const SHAMapNode& id, const uint256& hash, bool modify);
SHAMapTreeNode* getNodePointer(const SHAMapNode& id, const uint256& hash);
SHAMapItem::pointer firstBelow(SHAMapTreeNode::pointer);
SHAMapItem::pointer lastBelow(SHAMapTreeNode::pointer);