Added value balance consensus enforcement for pours.
This commit is contained in:
@@ -382,6 +382,8 @@ CAmount CCoinsViewCache::GetValueIn(const CTransaction& tx) const
|
||||
for (unsigned int i = 0; i < tx.vin.size(); i++)
|
||||
nResult += GetOutputFor(tx.vin[i]).nValue;
|
||||
|
||||
nResult += tx.GetPourValueIn();
|
||||
|
||||
return nResult;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user