From 1d071a9998b120a1014926d5f79691d5f34ceada Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sat, 21 Apr 2018 17:56:27 -0300 Subject: [PATCH] fix bug in CClaimTrie::getEffectiveAmountForClaim --- src/claimtrie.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;