From 354da990380c62ae35ffa08c9f900832f37fb2a8 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 25 Nov 2011 13:51:47 -0800 Subject: [PATCH] Correct depth to 20+leaf, not 10+leaf. --- SHAMap.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SHAMap.h b/SHAMap.h index 67ce5dd68..735008afb 100644 --- a/SHAMap.h +++ b/SHAMap.h @@ -13,7 +13,7 @@ class SHAMap; // A tree-like map of SHA256 hashes -// 10 levels, consisting of a root, 9 interior node levels, and leaves +// 21 levels, consisting of a root, 19 interior node levels, and leaves // The trees are designed for rapid synchronization and compression of differences @@ -23,16 +23,16 @@ public: typedef boost::shared_ptr pointer; private: - static uint256 smMasks[11]; // AND with hash to get node id + static uint256 smMasks[21]; // AND with hash to get node id uint256 mNodeID; int mDepth; public: - // 0 is root, 10 is leaf + // 0 is root, 20 is leaf static const int rootDepth=0; - static const int leafDepth=10; + static const int leafDepth=20; SHAMapNode(int depth, const uint256& hash); int getDepth() const { return mDepth; }