From 6f0b24d62d0f6696a273c9cd8f5311d3e6a9eb96 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Mon, 12 Mar 2018 22:14:05 -0400 Subject: [PATCH] add comment about what recursivePruneName does --- src/claimtrie.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/claimtrie.cpp b/src/claimtrie.cpp index 2560610b6..9f7335d8f 100644 --- a/src/claimtrie.cpp +++ b/src/claimtrie.cpp @@ -1428,6 +1428,9 @@ bool CClaimTrieCache::removeClaimFromTrie(const std::string& name, const COutPoi bool CClaimTrieCache::recursivePruneName(CClaimTrieNode* tnCurrent, unsigned int nPos, std::string sName, bool* pfNullified) const { + // Recursively prune leaf node(s) without any claims in it and store + // the modified nodes in the cache + bool fNullified = false; std::string sCurrentSubstring = sName.substr(0, nPos); if (nPos < sName.size())