add comment about what recursivePruneName does

This commit is contained in:
Kay Kurokawa 2018-03-12 22:14:05 -04:00 committed by Umpei Kay Kurokawa
parent 62f4bedb17
commit 6f0b24d62d

View file

@ -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())