From: CryptoManiac Date: Fri, 21 Aug 2015 14:14:53 +0000 (+0300) Subject: SetEmpty on construct X-Git-Url: https://git.novaco.in/?p=NovacoinLibrary.git;a=commitdiff_plain;h=aa1c001a72d601fbddb3305086762c5a256c40b3 SetEmpty on construct --- diff --git a/Novacoin/CTxOut.cs b/Novacoin/CTxOut.cs index 3e3d4c1..4ce6c0d 100644 --- a/Novacoin/CTxOut.cs +++ b/Novacoin/CTxOut.cs @@ -34,7 +34,7 @@ namespace Novacoin /// public CTxOut() { - scriptPubKey = new CScript(); + SetEmpty(); } /// @@ -81,12 +81,17 @@ namespace Novacoin } } + /// + /// Null prevouts have -1 value + /// public void SetNull() { nValue = -1; - scriptPubKey.SetNullDestination(); } + /// + /// Empty outputs have zero value and empty scriptPubKey + /// public void SetEmpty() { nValue = 0;