fix bug in CClaimTrie::getEffectiveAmountForClaim
This commit is contained in:
parent
6b13bd1d45
commit
1d071a9998
1 changed files with 2 additions and 0 deletions
|
@ -534,10 +534,12 @@ CAmount CClaimTrie::getEffectiveAmountForClaim(const std::string& name, uint160
|
|||
for (std::vector<CClaimValue>::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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue