best_claim_effective_amount_equals was not using getEffectiveAmountForClaim

This commit is contained in:
kay kurokawa 2018-05-06 22:57:26 -04:00 committed by Umpei Kay Kurokawa
parent 6fc7e0860e
commit e120c1de69

View file

@ -74,7 +74,7 @@ best_claim_effective_amount_equals(std::string name, CAmount amount)
else else
{ {
CAmount effective_amount = pclaimTrie->getEffectiveAmountForClaim(name, val.claimId); CAmount effective_amount = pclaimTrie->getEffectiveAmountForClaim(name, val.claimId);
if (val.nEffectiveAmount != amount) if (effective_amount != amount)
{ {
boost::test_tools::predicate_result res(false); boost::test_tools::predicate_result res(false);
res.message()<<amount<<" != "<<effective_amount; res.message()<<amount<<" != "<<effective_amount;