diff --git a/src/claimtrie.cpp b/src/claimtrie.cpp index 9f7335d8f..42fc55769 100644 --- a/src/claimtrie.cpp +++ b/src/claimtrie.cpp @@ -534,9 +534,11 @@ CAmount CClaimTrie::getEffectiveAmountForClaim(const std::string& name, uint160 for (std::vector::iterator it=claims.claims.begin(); it!=claims.claims.end(); ++it) { if (it->claimId == claimId && it->nValidAtHeight < nCurrentHeight) + { effectiveAmount += it->nAmount; claim_found = true; break; + } } if (!claim_found) return effectiveAmount;