From: CryptoManiac Date: Wed, 2 Sep 2015 22:49:35 +0000 (+0300) Subject: IsInMainChain property X-Git-Url: https://git.novaco.in/?p=NovacoinLibrary.git;a=commitdiff_plain;h=4aba1bf2ae27142da4cff793df47088c2e3514fe IsInMainChain property --- diff --git a/Novacoin/CBlockStore.cs b/Novacoin/CBlockStore.cs index f780a64..a579898 100644 --- a/Novacoin/CBlockStore.cs +++ b/Novacoin/CBlockStore.cs @@ -233,10 +233,16 @@ namespace Novacoin get { return CBlockStore.Instance.GetCursor(nextHash); } } - /// - /// STake modifier generation flag - /// - public bool GeneratedStakeModifier + bool IsInMainChain + { + get { return (next != null); } + } + + + /// + /// STake modifier generation flag + /// + public bool GeneratedStakeModifier { get { return (BlockTypeFlag & BlockType.BLOCK_STAKE_MODIFIER) != 0; } }