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
{
CAmount effective_amount = pclaimTrie->getEffectiveAmountForClaim(name, val.claimId);
if (val.nEffectiveAmount != amount)
if (effective_amount != amount)
{
boost::test_tools::predicate_result res(false);
res.message()<<amount<<" != "<<effective_amount;