mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Consensus: Add asset type to CTxOut and validation
This commit is contained in:
parent
c63b8e9803
commit
05bc6db085
19 changed files with 196 additions and 90 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue