COutPoint class, coinbase/coinstake properties
[NovacoinLibrary.git] / Novacoin / CScript.cs
index 835c53d..4223791 100644 (file)
@@ -174,7 +174,6 @@ namespace Novacoin
         /// <summary>
         /// Is it true that script doesn't contain anything except push value operations?
         /// </summary>
-        /// <returns>Checking result</returns>
         public bool IsPushonly
         {
             get
@@ -201,7 +200,6 @@ namespace Novacoin
         /// <summary>
         /// Is it true that script doesn't contain non-canonical push operations?
         /// </summary>
-        /// <returns>Checking result</returns>
         public bool HasOnlyCanonicalPushes
         {
             get
@@ -245,7 +243,6 @@ namespace Novacoin
         /// <summary>
         /// Quick test for pay-to-script-hash CScripts
         /// </summary>
-        /// <returns>Checking result</returns>
         public bool IsPayToScriptHash
         {
             get
@@ -262,7 +259,6 @@ namespace Novacoin
         /// <summary>
         /// Quick test for pay-to-pubkeyhash CScripts
         /// </summary>
-        /// <returns>Checking result</returns>
         public bool IsPayToPubKeyHash
         {
             get
@@ -279,6 +275,14 @@ namespace Novacoin
         }
 
         /// <summary>
+        /// Quick test for Null destination
+        /// </summary>
+        public bool IsNull
+        {
+            get { return codeBytes.Count == 0; }
+        }
+
+        /// <summary>
         /// Pre-version-0.6, Bitcoin always counted CHECKMULTISIGs
         /// as 20 sigops. With pay-to-script-hash, that changed:
         /// CHECKMULTISIGs serialized in scriptSigs are