X-Git-Url: https://git.novaco.in/?p=NovacoinLibrary.git;a=blobdiff_plain;f=Novacoin%2FCBlockStore.cs;h=a579898bf14d271766ad6921364853c242b1b9fe;hp=f780a6470617e465278765e65b25e32ae1d4df81;hb=4aba1bf2ae27142da4cff793df47088c2e3514fe;hpb=12f67828e449407a93bdb3202066003a48a8c276 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; } }