/// </summary>
public CTxOut()
{
- scriptPubKey = new CScript();
+ SetEmpty();
}
/// <summary>
}
}
+ /// <summary>
+ /// Null prevouts have -1 value
+ /// </summary>
public void SetNull()
{
nValue = -1;
- scriptPubKey.SetNullDestination();
}
+ /// <summary>
+ /// Empty outputs have zero value and empty scriptPubKey
+ /// </summary>
public void SetEmpty()
{
nValue = 0;