Rename CClaimTrieCache to CClaimTrieUpdateBuffer #156

Closed
kaykurokawa wants to merge 276 commits from cclaimtriecache_change into master
Showing only changes of commit 1d071a9998 - Show all commits

View file

@ -534,9 +534,11 @@ CAmount CClaimTrie::getEffectiveAmountForClaim(const std::string& name, uint160
for (std::vector<CClaimValue>::iterator it=claims.claims.begin(); it!=claims.claims.end(); ++it) for (std::vector<CClaimValue>::iterator it=claims.claims.begin(); it!=claims.claims.end(); ++it)
{ {
if (it->claimId == claimId && it->nValidAtHeight < nCurrentHeight) if (it->claimId == claimId && it->nValidAtHeight < nCurrentHeight)
{
effectiveAmount += it->nAmount; effectiveAmount += it->nAmount;
claim_found = true; claim_found = true;
break; break;
}
} }
if (!claim_found) if (!claim_found)
return effectiveAmount; return effectiveAmount;