This commit is contained in:
jl777
2016-10-20 15:14:39 -03:00
parent 0ed83449cc
commit 602dc7445d
2 changed files with 4 additions and 3 deletions

View File

@@ -390,8 +390,9 @@ CAmount CCoinsViewCache::GetValueIn(const CTransaction& tx) const
CAmount nResult = 0;
for (unsigned int i = 0; i < tx.vin.size(); i++)
{
nResult += GetOutputFor(tx.vin[i]).nValue;
}
nResult += tx.GetJoinSplitValueIn();
return nResult;