From d0ca81ff36a46fbdf8d2a629093f6d676feeb77f Mon Sep 17 00:00:00 2001 From: David Schwartz Date: Fri, 31 Jan 2014 17:23:10 -0800 Subject: [PATCH] visitLeaves must visit all branches --- src/ripple_app/shamap/SHAMapSync.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ripple_app/shamap/SHAMapSync.cpp b/src/ripple_app/shamap/SHAMapSync.cpp index 9850e0b35..a466a365d 100644 --- a/src/ripple_app/shamap/SHAMapSync.cpp +++ b/src/ripple_app/shamap/SHAMapSync.cpp @@ -73,7 +73,7 @@ void SHAMap::visitLeavesInternal (std::function& fu else { // If there are no more children, don't push this node - while ((pos != 15) && (child->isEmptyBranch (pos))) + while ((pos != 15) && (node->isEmptyBranch (pos + 1))) ++pos; if (pos != 15)