IsInMainChain property
authorCryptoManiac <balthazar@yandex.ru>
Wed, 2 Sep 2015 22:49:35 +0000 (01:49 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Wed, 2 Sep 2015 22:49:35 +0000 (01:49 +0300)
Novacoin/CBlockStore.cs

index f780a64..a579898 100644 (file)
@@ -233,10 +233,16 @@ namespace Novacoin
             get { return CBlockStore.Instance.GetCursor(nextHash); }
         }
 
-        /// <summary>
-        /// STake modifier generation flag
-        /// </summary>
-        public bool GeneratedStakeModifier
+        bool IsInMainChain
+        {
+            get { return (next != null); }
+        }
+
+
+    /// <summary>
+    /// STake modifier generation flag
+    /// </summary>
+    public bool GeneratedStakeModifier
         {
             get { return (BlockTypeFlag & BlockType.BLOCK_STAKE_MODIFIER) != 0; }
         }