Consensus: Add asset type to CTxOut and validation

This commit is contained in:
Gregory Sanders 2016-12-01 09:34:31 -05:00
parent c63b8e9803
commit 05bc6db085
19 changed files with 196 additions and 90 deletions

View file

@ -117,8 +117,9 @@ void CTxOutValue::SetToAmount(const CAmount nAmount) {
WriteBE64(&vchCommitment[1], nAmount);
}
CTxOut::CTxOut(const CTxOutValue& nValueIn, CScript scriptPubKeyIn)
CTxOut::CTxOut(const CTxOutAsset& nAssetIn, const CTxOutValue& nValueIn, CScript scriptPubKeyIn)
{
nAsset = nAssetIn;
nValue = nValueIn;
scriptPubKey = scriptPubKeyIn;
}