git://git.novaco.in
/
NovacoinLibrary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
12f6782
)
IsInMainChain property
author
CryptoManiac
<balthazar@yandex.ru>
Wed, 2 Sep 2015 22:49:35 +0000 (
01:49
+0300)
committer
CryptoManiac
<balthazar@yandex.ru>
Wed, 2 Sep 2015 22:49:35 +0000 (
01:49
+0300)
Novacoin/CBlockStore.cs
patch
|
blob
|
history
diff --git
a/Novacoin/CBlockStore.cs
b/Novacoin/CBlockStore.cs
index
f780a64
..
a579898
100644
(file)
--- a/
Novacoin/CBlockStore.cs
+++ b/
Novacoin/CBlockStore.cs
@@
-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; }
}